mark ROOTINO as NEW so that it can be "deleted" in interactive mode
authorKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Wed, 4 May 1983 14:32:39 +0000 (06:32 -0800)
committerKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Wed, 4 May 1983 14:32:39 +0000 (06:32 -0800)
SCCS-vsn: sbin/restore/symtab.c 3.10

usr/src/sbin/restore/symtab.c

index bf11f61..7e19c68 100644 (file)
@@ -1,7 +1,7 @@
 /* Copyright (c) 1983 Regents of the University of California */
 
 #ifndef lint
 /* Copyright (c) 1983 Regents of the University of California */
 
 #ifndef lint
-static char sccsid[] = "@(#)symtab.c   3.9     (Berkeley)      83/03/27";
+static char sccsid[] = "@(#)symtab.c   3.10    (Berkeley)      83/05/03";
 #endif
 
 /*
 #endif
 
 /*
@@ -491,7 +491,8 @@ initsymtable(filename)
                        calloc((unsigned)entrytblsize, sizeof(struct entry *));
                if (entry == (struct entry **)NIL)
                        panic("no memory for entry table\n");
                        calloc((unsigned)entrytblsize, sizeof(struct entry *));
                if (entry == (struct entry **)NIL)
                        panic("no memory for entry table\n");
-               (void)addentry(".", ROOTINO, NODE);
+               ep = addentry(".", ROOTINO, NODE);
+               ep->e_flags |= NEW;
                return;
        }
        if ((fd = open(filename, 0)) < 0) {
                return;
        }
        if ((fd = open(filename, 0)) < 0) {