From owner-freebsd-current Mon Sep 7 04:30:31 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id EAA26894 for freebsd-current-outgoing; Mon, 7 Sep 1998 04:30:31 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from scientia.demon.co.uk (scientia.demon.co.uk [212.228.14.13]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id EAA26869 for ; Mon, 7 Sep 1998 04:30:23 -0700 (PDT) (envelope-from ben@scientia.demon.co.uk) Received: from ben by scientia.demon.co.uk with local (Exim 2.02 #26) id 0zFzLo-00004Z-00 for current@freebsd.org; Mon, 7 Sep 1998 12:20:52 +0100 Date: Mon, 7 Sep 1998 12:20:52 +0100 From: Ben Smithurst To: current@FreeBSD.ORG Subject: INCLUDE_CONFIG_FILE in kernel broken ... Message-ID: <19980907122052.A29879@scientia.demon.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii User-Agent: Mutt/0.94.3i (FreeBSD 3.0-CURRENT i386) Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG There seem to be a couple of problems with INCLUDE_CONFIG_FILE in a kernel config: 1) tabs are converted to newlines, it appears 2) there are other lines from the strings output beginning with ___ Has anyone else seen this, or is it just me? If it's not just me, this patch, fixes both, but since I'm no expert, there may be a better way to do it: --- src/usr.sbin/config/main.c.orig Mon Sep 7 12:08:51 1998 +++ src/usr.sbin/config/main.c Mon Sep 7 12:13:52 1998 @@ -359,14 +359,16 @@ fprintf(fo,"#include \"opt_config.h\"\n"); fprintf(fo,"#ifdef INCLUDE_CONFIG_FILE \n"); fprintf(fo,"static char *config = \"\\\n"); - fprintf(fo,"START CONFIG FILE %s\\n\\\n___",PREFIX); + fprintf(fo,"START CONFIG FILE %s\\n\\\n____",PREFIX); while (EOF != (i=getc(fi))) { if(i == '\n') { - fprintf(fo,"\\n\\\n___"); + fprintf(fo,"\\n\\\n____"); } else if(i == '\"') { fprintf(fo,"\\\""); } else if(i == '\\') { fprintf(fo,"\\\\"); + } else if(i == '\t') { + fprintf(fo," "); } else { putc(i,fo); } It may have been fixed already, my source is a few days old :-( If it is just me, does anyone know what could be causing it? -- Ben Smithurst : ben@scientia.demon.co.uk : http://www.scientia.demon.co.uk/ PGP: 0x99392F7D - 3D 89 87 42 CE CA 93 4C 68 32 0E D5 36 05 3D 16 http://www.scientia.demon.co.uk/ben/pgp-key.html (or use keyservers) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message