From owner-freebsd-current@FreeBSD.ORG Wed Jun 6 07:18:42 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 5A3F516A400 for ; Wed, 6 Jun 2007 07:18:42 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from cs1.cs.huji.ac.il (cs1.cs.huji.ac.il [132.65.16.10]) by mx1.freebsd.org (Postfix) with ESMTP id 17C3713C48C for ; Wed, 6 Jun 2007 07:18:42 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from pampa.cs.huji.ac.il ([132.65.80.32]) by cs1.cs.huji.ac.il with esmtp id 1Hvpmy-0001hk-Az for freebsd-current@FreeBSD.org; Wed, 06 Jun 2007 10:18:40 +0300 X-Mailer: exmh version 2.7.2 01/07/2005 with nmh-1.2 To: freebsd-current@FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 06 Jun 2007 10:18:40 +0300 From: Danny Braniss Message-ID: Cc: Subject: 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: Wed, 06 Jun 2007 07:18:42 -0000 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. btw, it would realy be nice if the sys/conf/NOTES file is updated. danny