patch to fix breakage caused by earlier config(8) patch
Chris Pressey
cpressey at catseye.mine.nu
Thu Mar 4 22:26:21 PST 2004
Erk. Drat. Sorry. A bug slipped in apparently. Accidentally inverted
the sense of a test. Causes a whole bunch of "unknown device removed"
warnings for me. The attached patch fixes it. Sorry again.
-Chris
Index: mkoptions.c
===================================================================
RCS file: /home/dcvs/src/usr.sbin/config/mkoptions.c,v
retrieving revision 1.8
diff -u -r1.8 mkoptions.c
--- mkoptions.c 4 Mar 2004 20:44:49 -0000 1.8
+++ mkoptions.c 4 Mar 2004 22:18:40 -0000
@@ -186,7 +186,7 @@
for (ol = otab; ol != NULL; ol = ol->o_next)
if (eq(inw, ol->o_name))
break;
- if (!eq(inw, name) && ol != NULL) {
+ if (!eq(inw, name) && ol == NULL) {
printf("WARNING: unknown option `%s' removed from %s\n",
inw, file);
tidy++;
More information about the Submit
mailing list