summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-11-19 22:47:38 +0000
committerMiles Bader <miles@gnu.org>1996-11-19 22:47:38 +0000
commit49f0502ff7a01623eb4417d92e26939ec147580d (patch)
tree24e49e2b87e4f907d488d5a418cbcd302bc0bfa6 /libdiskfs
parentcb2a1610dec9da2cbad1c04eee3f2170cc9a13cc (diff)
(diskfs_S_file_invoke_translator):
Use S_IPTRANS bit in dn_stat st_mode field rather than istranslated field.
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/file-inv-trans.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libdiskfs/file-inv-trans.c b/libdiskfs/file-inv-trans.c
index d0a0082b..d3014164 100644
--- a/libdiskfs/file-inv-trans.c
+++ b/libdiskfs/file-inv-trans.c
@@ -54,7 +54,8 @@ diskfs_S_file_invoke_translator (struct protid *cred __attribute__ ((unused)),
repeat_transcheck:
/* Ignore O_NOTRANS in the following check */
- if (np->istranslated || np->translator.control != MACH_PORT_NULL)
+ if ((np->dn_stat.st_mode & S_IPTRANS)
+ || np->translator.control != MACH_PORT_NULL)
{
mach_port_t control = np->translator.control;