atom feed2 messages in org.freebsd.freebsd-auditRe: sysctl fix for zero-length data
FromSent OnAttachments
Dima DorfmanMay 31, 2001 9:49 pm 
Peter PentchevJun 2, 2001 12:41 am 
Subject:Re: sysctl fix for zero-length data
From:Peter Pentchev (ro@orbitel.bg)
Date:Jun 2, 2001 12:41:16 am
List:org.freebsd.freebsd-audit

On Thu, May 31, 2001 at 09:50:07PM -0700, Dima Dorfman wrote:

Please review the attached patch to fix the sysctl interface to accept data of zero length. This fixes the case where one wants to clear a string exported via sysctl, as in:

sysctl kern.hostname=

Right now, the above will do nothing. With this patch, it will clear (i.e., set to "") "kern.hostname".

About time, too! Hope this one gets committed soon :) FWIW, I've been running it here for a couple of months (ever since it came up back in January), and there have been no adverse effects of setting string sysctl's to empty strings.

G'luck, Peter

To Unsubscribe: send mail to majo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message