diff options
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)))) |