mirror of
https://github.com/drasko/codezero.git
synced 2026-03-02 02:33:12 +01:00
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:
@@ -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("/");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user