diff --git a/fs.c b/fs.c index a1f0bf5..3ba0858 100644 --- a/fs.c +++ b/fs.c @@ -723,7 +723,7 @@ link(char *name1, char *name2) } ilock(ip); - ip->nlink += 1; + ip->nlink++; iupdate(ip); wdir(dp, last, ip->inum);