Comment out /etc/inittab entries instead of deleting them
authorArt Cancro <ajc@citadel.org>
Tue, 19 Dec 2006 03:45:14 +0000 (03:45 +0000)
committerArt Cancro <ajc@citadel.org>
Tue, 19 Dec 2006 03:45:14 +0000 (03:45 +0000)
webcit/setup.c

index 189036fc01b38b32b257318105f452cf617a0eaa..ed8bc961423ad57c1be1bc5796eed309465f31a0 100644 (file)
@@ -55,7 +55,7 @@ void delete_init_entry(char *which_entry)
                        extract_token(prog, buf, 3, ':', sizeof prog); /* includes 0x0a LF */
 
                        if (!strcmp(entry, which_entry)) {
-                               buf[0] = 0;     /* delete it */
+                               strcpy(state, "off");   /* disable it */
                        }
                }