diff options
Diffstat (limited to 'libdiskfs/lookup.c')
-rw-r--r-- | libdiskfs/lookup.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libdiskfs/lookup.c b/libdiskfs/lookup.c index 282d829f..96cce94e 100644 --- a/libdiskfs/lookup.c +++ b/libdiskfs/lookup.c @@ -92,7 +92,7 @@ diskfs_lookup (struct node *dp, char *name, enum lookup_type type, diskfs_null_dirstat (ds); return ENOTDIR; } - err = diskfs_access (dp, S_IEXEC, cred); + err = fshelp_access (&dp->dn_stat, S_IEXEC, cred->user); if (err) { if (ds) @@ -157,7 +157,9 @@ diskfs_lookup (struct node *dp, char *name, enum lookup_type type, || (type == CREATE && err == ENOENT) || (type == REMOVE && err != ENOENT)) { - error_t err2 = diskfs_checkdirmod (dp, (err || !np) ? 0 : *np, cred); + error_t err2 = fshelp_checkdirmod (&dp->dn_stat, + (err || !np) ? 0 : &(*np)->dn_stat, + cred->user); if (err2) { if (np && !err) |