diff --git a/sysfile.c b/sysfile.c index ab5be04..105fb48 100644 --- a/sysfile.c +++ b/sysfile.c @@ -240,6 +240,7 @@ create(char *path, int canexist, short type, short major, short minor) ilock(ip); ip->major = major; ip->minor = minor; + ip->nlink = 1; iupdate(ip); if(dirlink(dp, name, ip->inum) < 0){