Skip to content

Commit

Permalink
Fix typo in dirlookup
Browse files Browse the repository at this point in the history
  • Loading branch information
gw authored Apr 27, 2017
1 parent 59cdd6c commit 61f26e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand Down

0 comments on commit 61f26e3

Please sign in to comment.