summaryrefslogtreecommitdiff
path: root/libnetfs
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1997-06-20 05:49:02 +0000
committerMiles Bader <miles@gnu.org>1997-06-20 05:49:02 +0000
commite52c6513af0ef545d16c3deb4441baa9c0253851 (patch)
treea08fff5e12284e9b3fc7f5efbf221c21fb7ae592 /libnetfs
parentf7f97906e236c992b0deb3f9d86b4413bf03ec64 (diff)
(netfs_S_dir_lookup):
Use S_IPTRANS bit in nn_stat st_mode field rather than istranslated field.
Diffstat (limited to 'libnetfs')
-rw-r--r--libnetfs/dir-lookup.c4
1 files changed, 2 insertions, 2 deletions
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,