summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1996-11-19 22:49:51 +0000
committerMiles Bader <miles@gnu.org>1996-11-19 22:49:51 +0000
commit928bb34b47e41dd8fa9a04309d29d43b6cd67941 (patch)
treece53928a3e62a16ec696c5e68783376b45552c5a /libdiskfs
parent49f0502ff7a01623eb4417d92e26939ec147580d (diff)
(diskfs_S_file_get_translator):
Use S_IPTRANS bit in dn_stat st_mode field rather than istranslated field.
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/file-get-trans.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libdiskfs/file-get-trans.c b/libdiskfs/file-get-trans.c
index abb9e9e7..a9a94e54 100644
--- a/libdiskfs/file-get-trans.c
+++ b/libdiskfs/file-get-trans.c
@@ -1,5 +1,5 @@
/* libdiskfs implementation of fs.defs: file_get_translator
- Copyright (C) 1992, 1993, 1994, 1995 Free Software Foundation
+ Copyright (C) 1992, 1993, 1994, 1995, 1996 Free Software Foundation
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
@@ -111,7 +111,7 @@ diskfs_S_file_get_translator (struct protid *cred,
}
else
{
- if (!np->istranslated)
+ if (! (np->dn_stat.st_mode & S_IPTRANS))
error = EINVAL;
else
{