56:c6cf20b09043 | 57:b3a89736b23e |
---|---|
158 | 158 |
159 // check ACLs | 159 // check ACLs |
160 uid_t uid; // uid and gid will be initialized by sys_acl_check | 160 uid_t uid; // uid and gid will be initialized by sys_acl_check |
161 gid_t gid; | 161 gid_t gid; |
162 if(sys_acl_check(ctx, access_mask, &uid, &gid)) { | 162 if(sys_acl_check(ctx, access_mask, &uid, &gid)) { |
163 return NULL; | 163 return -1; |
164 } | 164 } |
165 | 165 |
166 // stat | 166 // stat |
167 if(stat(path, buf)) { | 167 if(stat(path, buf)) { |
168 if(ctx) { | 168 if(ctx) { |
338 | 338 |
339 // check ACLs | 339 // check ACLs |
340 uid_t uid; // uid and gid will be initialized by sys_acl_check | 340 uid_t uid; // uid and gid will be initialized by sys_acl_check |
341 gid_t gid; | 341 gid_t gid; |
342 if(sys_acl_check(ctx, access_mask, &uid, &gid)) { | 342 if(sys_acl_check(ctx, access_mask, &uid, &gid)) { |
343 return NULL; | 343 return -1; |
344 } | 344 } |
345 | 345 |
346 // do path operation | 346 // do path operation |
347 if(op(ctx, path)) { | 347 if(op(ctx, path)) { |
348 // error | 348 // error |