lookup return value was changed from -ENOENT to 0 when vnode not found,

Fixed a point in code that expected 0.

Next: lookups should not consume from path every time called but only
when moving to children to lookup.
This commit is contained in:
Bahadir Balban
2008-04-15 23:45:46 +01:00
parent 577a2bffe4
commit 9a66893288
3 changed files with 34 additions and 5 deletions

View File

@@ -151,6 +151,13 @@ int dirtest(void)
if (mkdir("/dev", 0) < 0)
perror("MKDIR");
if (mkdir("/usr/bin", 0) < 0)
perror("MKDIR");
if (mkdir("/home/", 0) < 0)
perror("MKDIR");
if (mkdir("/home/bahadir", 0) < 0)
perror("MKDIR");
printf("\nlsdir root directory:\n");
lsdir("/");