int i;
tVFS_Handle *h = VFS_GetHandle(FD);
+ ENTER("ph pDest", h, Dest);
+
// Error check
- if(!h) return -1;
+ if(!h) {
+ LEAVE('i', -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;
+ LEAVE('i', 1);
return 1;
}
if( h->Node->NumACLs == 0 ) {
Dest->Inv = 0;
Dest->Perms = 0;
+ LEAVE('i', 0);
return 0;
}
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;
+ LEAVE('i', 0);
return 0;
}