From: John Hodge Date: Sun, 27 Sep 2009 10:24:30 +0000 (+0800) Subject: Included leading / in path parsing X-Git-Tag: rel0.06~422 X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=7180d8e33801a3205012d27ea5ccb80f70695b5d;p=tpg%2Facess2.git Included leading / in path parsing --- diff --git a/Kernel/vfs/open.c b/Kernel/vfs/open.c index 9069a73d..1d869103 100644 --- a/Kernel/vfs/open.c +++ b/Kernel/vfs/open.c @@ -69,7 +69,7 @@ char *VFS_GetAbsPath(char *Path) } // Remove . and .. - read = write = 1; // Cwd has already been parsed + read = write = 0; // Cwd has already been parsed for(; read < baseLen+pathLen; read = pos+1) { pos = strpos( &ret[read], '/' );