be clear what the root i-number is
This commit is contained in:
parent
be38c8413e
commit
2ce40d7088
3 changed files with 3 additions and 2 deletions
2
fs.c
2
fs.c
|
@ -582,7 +582,7 @@ _namei(char *path, int parent, char *name)
|
|||
struct inode *ip, *next;
|
||||
|
||||
if(*path == '/')
|
||||
ip = iget(ROOTDEV, 1);
|
||||
ip = iget(ROOTDEV, ROOTINO);
|
||||
else
|
||||
ip = idup(cp->cwd);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue