It would be handy if bsd.re-config allowed comments so
we can annotate why we're frobbing those kernel settings
(and to allow version control headers).  Diff attached.

--lyndon
Index: ukcutil.c
===================================================================
RCS file: /cvs/src/usr.sbin/config/ukcutil.c,v
retrieving revision 1.26
diff -u -r1.26 ukcutil.c
--- ukcutil.c   20 Nov 2021 03:13:37 -0000      1.26
+++ ukcutil.c   21 Oct 2022 03:29:22 -0000
@@ -1319,9 +1319,12 @@
                }
                ask_cmd(&cmd);
 
-               if (cmd.cmd[0] == '\0') {
+               switch (cmd.cmd[0]) {
+               case 0:
                        if (cmdfile != NULL)
                                return 1;
+                       goto again;
+               case '#':
                        goto again;
                }
                for (i = 0; cmd_table[i].cmd != NULL; i++)

Reply via email to