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
Usermode/ld-acess - Fix syscall arg count for SysDebugHex
[tpg/acess2.git]
/
KernelLand
/
Kernel
/
vfs
/
open.c
diff --git
a/KernelLand/Kernel/vfs/open.c
b/KernelLand/Kernel/vfs/open.c
index
68c9bd2
..
27e9878
100644
(file)
--- a/
KernelLand/Kernel/vfs/open.c
+++ b/
KernelLand/Kernel/vfs/open.c
@@
-49,9
+49,9
@@
char *VFS_GetAbsPath(const char *Path)
char *tmpStr;
int iPos = 0;
int iPos2 = 0;
char *tmpStr;
int iPos = 0;
int iPos2 = 0;
- const char *chroot = *Threads_GetChroot();
+ const char *chroot = *Threads_GetChroot(
NULL
);
int chrootLen;
int chrootLen;
- const char *cwd = *Threads_GetCWD();
+ const char *cwd = *Threads_GetCWD(
NULL
);
int cwdLen;
ENTER("sPath", Path);
int cwdLen;
ENTER("sPath", Path);
@@
-296,7
+296,7
@@
restart_parse:
pathEle[nextSlash] = 0;
// Check permissions on root of filesystem
pathEle[nextSlash] = 0;
// Check permissions on root of filesystem
- if( !VFS_CheckACL(curNode, VFS_PERM_EXEC
UTE
) ) {
+ if( !VFS_CheckACL(curNode, VFS_PERM_EXEC) ) {
LOG("Permissions failure on '%s'", Path);
errno = EPERM;
goto _error;
LOG("Permissions failure on '%s'", Path);
errno = EPERM;
goto _error;
@@
-474,7
+474,7
@@
int VFS_int_CreateHandle( tVFS_Node *Node, tVFS_Mount *Mount, int Mode )
ENTER("pNode pMount xMode", Node, Mount, Mode);
i = 0;
ENTER("pNode pMount xMode", Node, Mount, Mode);
i = 0;
- i |= (Mode & VFS_OPENFLAG_EXEC) ? VFS_PERM_EXEC
UTE
: 0;
+ i |= (Mode & VFS_OPENFLAG_EXEC) ? VFS_PERM_EXEC : 0;
i |= (Mode & VFS_OPENFLAG_READ) ? VFS_PERM_READ : 0;
i |= (Mode & VFS_OPENFLAG_WRITE) ? VFS_PERM_WRITE : 0;
i |= (Mode & VFS_OPENFLAG_READ) ? VFS_PERM_READ : 0;
i |= (Mode & VFS_OPENFLAG_WRITE) ? VFS_PERM_WRITE : 0;
@@
-557,7
+557,7
@@
int VFS_OpenEx(const char *Path, Uint Flags, Uint Mode)
}
// Check ACLs on the parent
}
// Check ACLs on the parent
- if( !VFS_CheckACL(pnode, VFS_PERM_EXEC
UTE
|VFS_PERM_WRITE) ) {
+ if( !VFS_CheckACL(pnode, VFS_PERM_EXEC|VFS_PERM_WRITE) ) {
errno = EACCES;
goto _pnode_err;
}
errno = EACCES;
goto _pnode_err;
}
@@
-706,7
+706,8
@@
int VFS_OpenInode(Uint32 Mount, Uint64 Inode, int Mode)
// Does the filesystem support this?
if( !mnt->Filesystem->GetNodeFromINode ) {
// Does the filesystem support this?
if( !mnt->Filesystem->GetNodeFromINode ) {
- LOG("Filesystem does not support inode accesses");
+ Log_Notice("VFS", "Filesystem '%s' does not support inode accesses",
+ mnt->Filesystem->Name);
errno = ENOENT;
LEAVE_RET('i', -1);
}
errno = ENOENT;
LEAVE_RET('i', -1);
}
@@
-857,7
+858,7
@@
int VFS_ChDir(const char *Dest)
VFS_Close(fd);
{
VFS_Close(fd);
{
- char **cwdptr = Threads_GetCWD();
+ char **cwdptr = Threads_GetCWD(
NULL
);
// Free old working directory
if( *cwdptr ) free( *cwdptr );
// Set new
// Free old working directory
if( *cwdptr ) free( *cwdptr );
// Set new
@@
-909,7
+910,7
@@
int VFS_ChRoot(const char *New)
// Update
{
// Update
{
- char **chroot_ptr = Threads_GetChroot();
+ char **chroot_ptr = Threads_GetChroot(
NULL
);
if( *chroot_ptr ) free( *chroot_ptr );
*chroot_ptr = buf;
}
if( *chroot_ptr ) free( *chroot_ptr );
*chroot_ptr = buf;
}
UCC
git Repository :: git.ucc.asn.au