From owner-freebsd-bugs Mon Feb 10 10:40: 7 2003 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0295B37B401 for ; Mon, 10 Feb 2003 10:40:04 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id F282643F85 for ; Mon, 10 Feb 2003 10:40:00 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id h1AIe0NS077492 for ; Mon, 10 Feb 2003 10:40:00 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h1AIe09J077491; Mon, 10 Feb 2003 10:40:00 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1F63F37B401 for ; Mon, 10 Feb 2003 10:31:41 -0800 (PST) Received: from mail.inka.de (quechua.inka.de [193.197.184.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5E35843F75 for ; Mon, 10 Feb 2003 10:31:39 -0800 (PST) (envelope-from naddy@mips.inka.de) Received: from kemoauc.mips.inka.de (uucp@) by mail.inka.de with gbsmtp id 18iIiP-0007li-09; Mon, 10 Feb 2003 19:31:37 +0100 Received: from kemoauc.mips.inka.de (localhost [127.0.0.1]) by kemoauc.mips.inka.de (8.12.6/8.12.6) with ESMTP id h1AI5DPD077177 for ; Mon, 10 Feb 2003 19:05:13 +0100 (CET) (envelope-from naddy@localhost.mips.inka.de) Received: (from naddy@localhost) by kemoauc.mips.inka.de (8.12.6/8.12.6/Submit) id h1AI5DmA077176; Mon, 10 Feb 2003 19:05:13 +0100 (CET) Message-Id: <200302101805.h1AI5DmA077176@kemoauc.mips.inka.de> Date: Mon, 10 Feb 2003 19:05:13 +0100 (CET) From: Christian Weisgerber Reply-To: Christian Weisgerber To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: bin/48157: config.8: recover kernel conf from INCLUDE_CONFIG_FILE Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 48157 >Category: bin >Synopsis: config.8: recover kernel conf from INCLUDE_CONFIG_FILE >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Feb 10 10:40:00 PST 2003 >Closed-Date: >Last-Modified: >Originator: Christian Weisgerber >Release: FreeBSD 5.0-CURRENT alpha >Organization: >Environment: System: FreeBSD kemoauc.mips.inka.de 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Wed Feb 5 13:01:08 CET 2003 naddy@kemoauc.mips.inka.de:/usr/obj/usr/src/sys/KEMOAUC alpha >Description: "options INCLUDE_CONFIG_FILE" allows the inclusion of the kernel configuration file into the kernel image. config.8 suggests the command strings kernel | grep ___ to recover the original configuration file. Instead I propose this command strings kernel | sed -n 's/^___//p' which is less likely to match false positives and removes the protecting leading underscores. >How-To-Repeat: >Fix: Index: src/usr.sbin/config/config.8 =================================================================== RCS file: /home/ncvs/src/usr.sbin/config/config.8,v retrieving revision 1.37 diff -u -r1.37 config.8 --- src/usr.sbin/config/config.8 12 Dec 2002 17:26:02 -0000 1.37 +++ src/usr.sbin/config/config.8 10 Feb 2003 17:58:18 -0000 @@ -164,7 +164,7 @@ can be used to extract it from a kernel: to extract the configuration information, use the command .Pp -.Dl "strings kernel | grep ___" +.Dl "strings kernel | sed -n 's/^___//p'" .Sh DEBUG KERNELS Traditional .Bx >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message