diff options
author | Michael I. Bushnell <mib@gnu.org> | 1996-03-12 20:35:28 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1996-03-12 20:35:28 +0000 |
commit | 6adeef7edcf612da925d49fd574c6fe90c436b6b (patch) | |
tree | f2b9cf72407e25f094c031e992f04c9d2678a85e /libnetfs | |
parent | 2f62706737751b5c4937e6d27b7d3d0d75a768df (diff) |
entered into RCS
Diffstat (limited to 'libnetfs')
-rw-r--r-- | libnetfs/dir-lookup.c | 10 |
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)))) |