bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] settrans -gl only kills the active translator


From: Neal H Walfield
Subject: Re: [PATCH] settrans -gl only kills the active translator
Date: Fri, 15 Jun 2001 22:47:49 -0500
User-agent: Mutt/1.3.18i

> libnetfs needs the change too.  

Opps.

libnetfs/ChangeLog:

2001-06-15  Neal H Walfield  <neal@cs.uml.edu>

        * 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.        

Index: file-set-translator.c
===================================================================
RCS file: /home/neal/cvs/hurd/libnetfs/file-set-translator.c,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 file-set-translator.c
--- file-set-translator.c       2001/06/03 20:53:19     1.1.1.1
+++ file-set-translator.c       2001/06/16 03:45:22
@@ -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 @@
   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);

Attachment: pgpLMNVFK_YzD.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]