]> code.citadel.org Git - citadel.git/blobdiff - webcit/setup.c
Comment out /etc/inittab entries instead of deleting them
[citadel.git] / 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 */
                        }
                }