summaryrefslogtreecommitdiff
path: root/libnetfs
diff options
context:
space:
mode:
Diffstat (limited to 'libnetfs')
-rw-r--r--libnetfs/dir-lookup.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libnetfs/dir-lookup.c b/libnetfs/dir-lookup.c
index 87535a8b..e0cecab2 100644
--- a/libnetfs/dir-lookup.c
+++ b/libnetfs/dir-lookup.c
@@ -176,7 +176,7 @@ netfs_S_dir_lookup (struct protid *diruser,
struct node *np = cookie1;
error_t err;
- err = netfs_validate_stat (np, diruser);
+ err = netfs_validate_stat (np, diruser->credential);
if (err)
return err;
@@ -262,7 +262,7 @@ netfs_S_dir_lookup (struct protid *diruser,
}
}
- netfs_validate_stat (np, diruser);
+ netfs_validate_stat (np, diruser->credential);
if (S_ISLNK (np->nn_stat.st_mode)
&& !(lastcomp && (flags & (O_NOLINK|O_NOTRANS))))
@@ -341,7 +341,7 @@ netfs_S_dir_lookup (struct protid *diruser,
if (mustbedir)
{
- netfs_validate_stat (np, diruser);
+ netfs_validate_stat (np, diruser->credential);
if (!S_ISDIR (np->nn_stat.st_mode))
{
error = ENOTDIR;