From owner-freebsd-current@FreeBSD.ORG Fri Jun 29 23:22:08 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7BF7616A421 for ; Fri, 29 Jun 2007 23:22:08 +0000 (UTC) (envelope-from dunstan@freebsd.czest.pl) Received: from freebsd.czest.pl (freebsd.czest.pl [80.48.250.4]) by mx1.freebsd.org (Postfix) with ESMTP id F334E13C448 for ; Fri, 29 Jun 2007 23:22:07 +0000 (UTC) (envelope-from dunstan@freebsd.czest.pl) Received: from freebsd.czest.pl (freebsd.czest.pl [80.48.250.4]) by freebsd.czest.pl (8.13.4/8.12.9) with ESMTP id l5TNKYnL070215; Fri, 29 Jun 2007 23:20:34 GMT (envelope-from dunstan@freebsd.czest.pl) Received: (from dunstan@localhost) by freebsd.czest.pl (8.13.4/8.12.9/Submit) id l5TNKXGj070214; Fri, 29 Jun 2007 23:20:33 GMT (envelope-from dunstan) Date: Fri, 29 Jun 2007 23:20:33 +0000 From: "Wojciech A. Koszek" To: Danny Braniss Message-ID: <20070629232032.GA70155@FreeBSD.czest.pl> Mail-Followup-To: "Wojciech A. Koszek" , Danny Braniss , freebsd-current@freebsd.org References: Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i X-Greylist: Sender DNS name whitelisted, not delayed by milter-greylist-2.0.2 (freebsd.czest.pl [80.48.250.4]); Fri, 29 Jun 2007 23:20:34 +0000 (UTC) Cc: freebsd-current@freebsd.org Subject: Re: INCLUDE_CONFIG_FILE off-by-one problem X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Jun 2007 23:22:08 -0000 On Wed, Jun 06, 2007 at 10:18:40AM +0300, Danny Braniss wrote: > to get the config file from the kernel, one can use config -k, which > executes elfdump to get the offset and size. The size is actually 1(one) > byte too big, and so the output of config -k contains a NULL/0/^@ as > the last byte. I think the problem is in the elf file. Why do you think that the problem lies in the ELF file? Can you confirm that following sysctls: kern.geom.confxml kern.geom.conftxt don't suffer from the same problem? > btw, it would realy be nice if the sys/conf/NOTES file is updated. I can change NOTES soon. I have huge email lag. Thanks, -- Wojciech A. Koszek wkoszek@FreeBSD.org http://FreeBSD.czest.pl/dunstan/