git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed strncmp
[tpg/acess2.git]
/
Kernel
/
vfs
/
open.c
diff --git
a/Kernel/vfs/open.c
b/Kernel/vfs/open.c
index
2a3359f
..
1c00a1f
100644
(file)
--- a/
Kernel/vfs/open.c
+++ b/
Kernel/vfs/open.c
@@
-87,9
+87,12
@@
char *VFS_GetAbsPath(char *Path)
if(pos == -1) pos = baseLen+pathLen;
else pos += read; // Else, Adjust to absolute
if(pos == -1) pos = baseLen+pathLen;
else pos += read; // Else, Adjust to absolute
+ Log("pos-read = %i", pos-read);
+
// Check Length
if(pos - read <= 2)
{
// Check Length
if(pos - read <= 2)
{
+ Log("&ret[read] = '%s'", &ret[read]);
// Current Dir "."
if(strncmp(&ret[read], ".", pos-read) == 0) continue;
// Parent ".."
// Current Dir "."
if(strncmp(&ret[read], ".", pos-read) == 0) continue;
// Parent ".."
@@
-121,6
+124,7
@@
char *VFS_GetAbsPath(char *Path)
// `ret` should now be the absolute path
LEAVE('s', ret);
// `ret` should now be the absolute path
LEAVE('s', ret);
+ Log("VFS_GetAbsPath: RETURN '%s'", ret);
return ret;
}
return ret;
}
UCC
git Repository :: git.ucc.asn.au