From c311ee6c369486f78c079134ca7d6ae13f6a403b Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sat, 16 Jun 2001 02:53:56 +0000 Subject: 2001-06-15 Neal H Walfield * file-set-translator.c (netfs_S_file_set_translator): If FS_TRANS_ORPHAN is set, do not ask the active translator to go away, just disconnect it. --- libnetfs/file-set-translator.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libnetfs') diff --git a/libnetfs/file-set-translator.c b/libnetfs/file-set-translator.c index 50959286..a0a70dba 100644 --- a/libnetfs/file-set-translator.c +++ b/libnetfs/file-set-translator.c @@ -1,5 +1,5 @@ /* - Copyright (C) 1996, 1997, 1999 Free Software Foundation, Inc. + Copyright (C) 1996, 1997, 1999, 2001 Free Software Foundation, Inc. Written by Michael I. Bushnell, p/BSG. This file is part of the GNU Hurd. @@ -45,7 +45,8 @@ netfs_S_file_set_translator (struct protid *user, np = user->po->np; mutex_lock (&np->lock); - if (active_flags & FS_TRANS_SET) + if (active_flags & FS_TRANS_SET + && ! (active_flags & FS_TRANS_ORPHAN)) { /* Validate--user must be owner */ err = netfs_validate_stat (np, user->user); -- cgit v1.2.3