Fix typo in dirlookup
This commit is contained in:
parent
59cdd6c63b
commit
61f26e3c97
1 changed files with 1 additions and 1 deletions
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)){
|
for(off = 0; off < dp->size; off += sizeof(de)){
|
||||||
if(readi(dp, (char*)&de, off, sizeof(de)) != sizeof(de))
|
if(readi(dp, (char*)&de, off, sizeof(de)) != sizeof(de))
|
||||||
panic("dirlink read");
|
panic("dirlookup read");
|
||||||
if(de.inum == 0)
|
if(de.inum == 0)
|
||||||
continue;
|
continue;
|
||||||
if(namecmp(name, de.name) == 0){
|
if(namecmp(name, de.name) == 0){
|
||||||
|
|
Loading…
Reference in a new issue