summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1997-06-20 05:48:24 +0000
committerMiles Bader <miles@gnu.org>1997-06-20 05:48:24 +0000
commitf7f97906e236c992b0deb3f9d86b4413bf03ec64 (patch)
treec74ecfd41c08b1239fbd518c76c07cc5ae52fa70
parent5e3b47d9c4649a56804c0a12213a7af034ae2e5e (diff)
(netfs_S_file_set_translator):
Use S_IPTRANS bit in nn_stat st_mode field rather than istranslated field.
-rw-r--r--libnetfs/file-set-translator.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libnetfs/file-set-translator.c b/libnetfs/file-set-translator.c
index 096e733a..685b5a02 100644
--- a/libnetfs/file-set-translator.c
+++ b/libnetfs/file-set-translator.c
@@ -1,5 +1,5 @@
/*
- Copyright (C) 1996 Free Software Foundation, Inc.
+ Copyright (C) 1996, 1997 Free Software Foundation, Inc.
Written by Michael I. Bushnell, p/BSG.
This file is part of the GNU Hurd.
@@ -78,7 +78,7 @@ netfs_S_file_set_translator (struct protid *user,
&& (passive_flags & FS_TRANS_EXCL))
{
err = netfs_validate_stat (np, user->user);
- if (!err && np->istranslated)
+ if (!err && (np->nn_stat.st_mode & S_IPTRANS))
err = EBUSY;
if (err)
goto out;