From owner-freebsd-audit Sat Jun 2 0:42:46 2001 Delivered-To: freebsd-audit@freebsd.org Received: from ringworld.nanolink.com (ringworld.nanolink.com [195.24.48.13]) by hub.freebsd.org (Postfix) with SMTP id 57C1037B43F for ; Sat, 2 Jun 2001 00:42:41 -0700 (PDT) (envelope-from roam@orbitel.bg) Received: (qmail 25066 invoked by uid 1000); 2 Jun 2001 07:41:38 -0000 Date: Sat, 2 Jun 2001 10:41:38 +0300 From: Peter Pentchev To: Dima Dorfman Cc: audit@freebsd.org Subject: Re: sysctl fix for zero-length data Message-ID: <20010602104137.A24747@ringworld.oblivion.bg> Mail-Followup-To: Dima Dorfman , audit@freebsd.org References: <20010601045007.629243E2F@bazooka.unixfreak.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010601045007.629243E2F@bazooka.unixfreak.org>; from dima@unixfreak.org on Thu, May 31, 2001 at 09:50:07PM -0700 Sender: owner-freebsd-audit@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 -- If this sentence didn't exist, somebody would have invented it. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-audit" in the body of the message