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
testing
[tpg/acess2.git]
/
Kernel
/
vfs
/
acls.c
diff --git
a/Kernel/vfs/acls.c
b/Kernel/vfs/acls.c
index
c0225ca
..
9c81c38
100644
(file)
--- a/
Kernel/vfs/acls.c
+++ b/
Kernel/vfs/acls.c
@@
-64,21
+64,15
@@
int VFS_GetACL(int FD, tVFS_ACL *Dest)
int i;
tVFS_Handle *h = VFS_GetHandle(FD);
int i;
tVFS_Handle *h = VFS_GetHandle(FD);
- ENTER("ph pDest", h, Dest);
-
// Error check
if(!h) {
// Error check
if(!h) {
- LEAVE('i', -1);
return -1;
}
return -1;
}
- LOG("h->Node = %p", h->Node);
-
// Root can do anything
if(Dest->Group == 0 && Dest->ID == 0) {
Dest->Inv = 0;
Dest->Perms = -1;
// Root can do anything
if(Dest->Group == 0 && Dest->ID == 0) {
Dest->Inv = 0;
Dest->Perms = -1;
- LEAVE('i', 1);
return 1;
}
return 1;
}
@@
-86,7
+80,6
@@
int VFS_GetACL(int FD, tVFS_ACL *Dest)
if( h->Node->NumACLs == 0 ) {
Dest->Inv = 0;
Dest->Perms = 0;
if( h->Node->NumACLs == 0 ) {
Dest->Inv = 0;
Dest->Perms = 0;
- LEAVE('i', 0);
return 0;
}
return 0;
}
@@
-98,13
+91,11
@@
int VFS_GetACL(int FD, tVFS_ACL *Dest)
Dest->Inv = h->Node->ACLs[i].Inv;
Dest->Perms = h->Node->ACLs[i].Perms;
Dest->Inv = h->Node->ACLs[i].Inv;
Dest->Perms = h->Node->ACLs[i].Perms;
- LEAVE('i', 1);
return 1;
}
Dest->Inv = 0;
Dest->Perms = 0;
return 1;
}
Dest->Inv = 0;
Dest->Perms = 0;
- LEAVE('i', 0);
return 0;
}
return 0;
}
UCC
git Repository :: git.ucc.asn.au