Date: Mon, 7 Sep 1998 12:20:52 +0100 From: Ben Smithurst <ben@scientia.demon.co.uk> To: current@FreeBSD.ORG Subject: INCLUDE_CONFIG_FILE in kernel broken ... Message-ID: <19980907122052.A29879@scientia.demon.co.uk>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980907122052.A29879>