/* Copyright (c) 1983 Regents of the University of California */
#ifndef lint
-static char sccsid[] = "@(#)symtab.c 3.8 (Berkeley) 83/03/27";
+static char sccsid[] = "@(#)symtab.c 3.10 (Berkeley) 83/05/03";
#endif
/*
ep = lookupino(inum);
if (ep == NIL)
panic("link to non-existant name\n");
+ np->e_ino = inum;
np->e_links = ep->e_links;
ep->e_links = np;
} else if (inum != 0) {
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) {