summaryrefslogtreecommitdiff
path: root/core/fs/fs.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2010-02-24 21:29:33 -0800
committerH. Peter Anvin <hpa@zytor.com>2010-02-24 21:29:33 -0800
commit4e7f791dd0c8429899047309f1a352a6ca055f3b (patch)
treef1702f5720534c009a086bd6e02d34f20c3110e2 /core/fs/fs.c
parente464516f5baa21981d8f0130e3589dffea201558 (diff)
downloadsyslinux-4e7f791dd0c8429899047309f1a352a6ca055f3b.tar.gz
fs: searchdir: handle opening a directory
Handle the case of opening a directory. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'core/fs/fs.c')
-rw-r--r--core/fs/fs.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/fs/fs.c b/core/fs/fs.c
index c24feede..fc7948d0 100644
--- a/core/fs/fs.c
+++ b/core/fs/fs.c
@@ -214,6 +214,8 @@ int searchdir(const char *name)
}
do {
+ inode = get_inode(parent);
+
while (*p == '/')
p++;