From e52c6513af0ef545d16c3deb4441baa9c0253851 Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Fri, 20 Jun 1997 05:49:02 +0000 Subject: (netfs_S_dir_lookup): Use S_IPTRANS bit in nn_stat st_mode field rather than istranslated field. --- libnetfs/dir-lookup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libnetfs/dir-lookup.c') diff --git a/libnetfs/dir-lookup.c b/libnetfs/dir-lookup.c index bce49d57..f6b78afd 100644 --- a/libnetfs/dir-lookup.c +++ b/libnetfs/dir-lookup.c @@ -189,7 +189,7 @@ netfs_S_dir_lookup (struct protid *diruser, goto out; if ((((flags & O_NOTRANS) == 0) || !lastcomp) - && (np->istranslated + && ((np->nn_stat.st_mode & S_IPTRANS) || S_ISFIFO (np->nn_stat.st_mode) || S_ISCHR (np->nn_stat.st_mode) || S_ISBLK (np->nn_stat.st_mode) @@ -254,7 +254,7 @@ netfs_S_dir_lookup (struct protid *diruser, dirport, diruser->user, lastcomp ? flags : 0, - (np->istranslated + ((np->nn_stat.st_mode & S_IPTRANS) ? _netfs_translator_callback1 : short_circuited_callback1), _netfs_translator_callback2, -- cgit v1.2.3