oops
This commit is contained in:
parent
629c1fe743
commit
603deefc6b
|
@ -240,6 +240,7 @@ create(char *path, int canexist, short type, short major, short minor)
|
||||||
ilock(ip);
|
ilock(ip);
|
||||||
ip->major = major;
|
ip->major = major;
|
||||||
ip->minor = minor;
|
ip->minor = minor;
|
||||||
|
ip->nlink = 1;
|
||||||
iupdate(ip);
|
iupdate(ip);
|
||||||
|
|
||||||
if(dirlink(dp, name, ip->inum) < 0){
|
if(dirlink(dp, name, ip->inum) < 0){
|
||||||
|
|
Loading…
Reference in a new issue