DragonFly BSD
DragonFly submit List (threaded) for 2004-03
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

patch to fix breakage caused by earlier config(8) patch


From: Chris Pressey <cpressey@xxxxxxxxxxxxxxx>
Date: Thu, 4 Mar 2004 22:30:06 -0800

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++;


[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]