Fixed Segfault if execve fails, fixed errors in LibC pertaining to stdin,... not...
[tpg/acess2.git] / Kernel / vfs / open.c
index 86ae3d3..0494294 100644 (file)
@@ -79,12 +79,9 @@ char *VFS_GetAbsPath(char *Path)
                if(pos == -1)   pos = endLen;
                else    pos += read;    // Else, Adjust to absolute
                
-               //Log("pos-read = %i", pos-read);
-               
                // Check Length
                if(pos - read <= 2)
                {
-                       //Log("&ret[read] = '%s'", &ret[read]);
                        // Current Dir "."
                        if(strncmp(&ret[read], ".", pos-read) == 0)     continue;
                        // Parent ".."
@@ -104,9 +101,9 @@ char *VFS_GetAbsPath(char *Path)
                
                // Only copy if the positions differ
                if(read != write) {
-                       Log("write = %i, read = %i, pos-read+1 = %i", write, read, pos-read+1);
+                       //Log("write = %i, read = %i, pos-read+1 = %i", write, read, pos-read+1);
                        memcpy( &ret[write], &ret[read], pos-read+1 );
-                       Log("ret = '%s'", ret);
+                       //Log("ret = '%s'", ret);
                }
                
                if(slashNum < MAX_PATH_SLASHES)
@@ -124,7 +121,7 @@ char *VFS_GetAbsPath(char *Path)
        
        // `ret` should now be the absolute path
        LEAVE('s', ret);
-       Log("VFS_GetAbsPath: RETURN '%s'", ret);
+       //Log("VFS_GetAbsPath: RETURN '%s'", ret);
        return ret;
 }
 

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