fs: searchdir: handle opening a directory
authorH. Peter Anvin <hpa@zytor.com>
Thu, 25 Feb 2010 05:29:33 +0000 (21:29 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Thu, 25 Feb 2010 05:29:33 +0000 (21:29 -0800)
Handle the case of opening a directory.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
core/fs/fs.c

index c24feed..fc7948d 100644 (file)
@@ -214,6 +214,8 @@ int searchdir(const char *name)
        }
 
        do {
+           inode = get_inode(parent);
+
            while (*p == '/')
                p++;