Fix typo in dirlookup
This commit is contained in:
parent
59cdd6c63b
commit
61f26e3c97
2
fs.c
2
fs.c
|
@ -518,7 +518,7 @@ dirlookup(struct inode *dp, char *name, uint *poff)
|
|||
|
||||
for(off = 0; off < dp->size; off += sizeof(de)){
|
||||
if(readi(dp, (char*)&de, off, sizeof(de)) != sizeof(de))
|
||||
panic("dirlink read");
|
||||
panic("dirlookup read");
|
||||
if(de.inum == 0)
|
||||
continue;
|
||||
if(namecmp(name, de.name) == 0){
|
||||
|
|
Loading…
Reference in a new issue