summaryrefslogtreecommitdiff
path: root/libnetfs
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-03-12 20:35:28 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-03-12 20:35:28 +0000
commit6adeef7edcf612da925d49fd574c6fe90c436b6b (patch)
treef2b9cf72407e25f094c031e992f04c9d2678a85e /libnetfs
parent2f62706737751b5c4937e6d27b7d3d0d75a768df (diff)
entered into RCS
Diffstat (limited to 'libnetfs')
-rw-r--r--libnetfs/dir-lookup.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/libnetfs/dir-lookup.c b/libnetfs/dir-lookup.c
index 7e337761..2c63954b 100644
--- a/libnetfs/dir-lookup.c
+++ b/libnetfs/dir-lookup.c
@@ -172,9 +172,10 @@ netfs_S_dir_lookup (struct protid *diruser,
if (error)
goto out;
-#if 0
- /* If this is translated, start the translator (if necessary)
- and return. */
+ error = netfs_validate_stat (np, diruser->credential);
+ if (error)
+ goto out;
+
if ((((flags & O_NOTRANS) == 0) || !lastcomp)
&& (np->istranslated
|| S_ISFIFO (np->nn_stat.st_mode)
@@ -280,9 +281,6 @@ netfs_S_dir_lookup (struct protid *diruser,
}
}
}
-#endif
-
- netfs_validate_stat (np, diruser->credential);
if (S_ISLNK (np->nn_stat.st_mode)
&& !(lastcomp && (flags & (O_NOLINK|O_NOTRANS))))