From 6adeef7edcf612da925d49fd574c6fe90c436b6b Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Tue, 12 Mar 1996 20:35:28 +0000 Subject: entered into RCS --- libnetfs/dir-lookup.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'libnetfs') 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)))) -- cgit v1.2.3