Included leading / in path parsing
authorJohn Hodge <[email protected]>
Sun, 27 Sep 2009 10:24:30 +0000 (18:24 +0800)
committerJohn Hodge <[email protected]>
Sun, 27 Sep 2009 10:24:30 +0000 (18:24 +0800)
Kernel/vfs/open.c

index 9069a73..1d86910 100644 (file)
@@ -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], '/' );

UCC git Repository :: git.ucc.asn.au