summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-11-19 22:53:02 +0000
committerMiles Bader <miles@gnu.org>1996-11-19 22:53:02 +0000
commitec7126837fb9e4b8b362e3f5b1649069a4e3d6d4 (patch)
tree29078fb87dfaed9e0b537e77349d9d37ad57b34b
parentc1655341f1fb47ca36cafed8886d54729ad3b806 (diff)
(diskfs_S_dir_lookup):
Use S_IPTRANS bit in dn_stat st_mode field rather than istranslated field.
-rw-r--r--libdiskfs/dir-lookup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdiskfs/dir-lookup.c b/libdiskfs/dir-lookup.c
index c0ca34a9..ad4cfb53 100644
--- a/libdiskfs/dir-lookup.c
+++ b/libdiskfs/dir-lookup.c
@@ -180,7 +180,7 @@ diskfs_S_dir_lookup (struct protid *dircred,
/* If this is translated, start the translator (if necessary)
and return. */
if ((((flags & O_NOTRANS) == 0) || !lastcomp)
- && (np->istranslated
+ && ((np->dn_stat.st_mode & S_IPTRANS)
|| S_ISFIFO (np->dn_stat.st_mode)
|| S_ISCHR (np->dn_stat.st_mode)
|| S_ISBLK (np->dn_stat.st_mode)
@@ -244,7 +244,7 @@ diskfs_S_dir_lookup (struct protid *dircred,
error = fshelp_fetch_root (&np->transbox, &dircred->po->dotdotport,
dirport, dircred->user,
lastcomp ? flags : 0,
- (np->istranslated
+ ((np->dn_stat.st_mode & S_IPTRANS)
? _diskfs_translator_callback1
: short_circuited_callback1),
_diskfs_translator_callback2,