diff options
Diffstat (limited to 'libdiskfs/file-inv-trans.c')
-rw-r--r-- | libdiskfs/file-inv-trans.c | 3 |
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; |