OSDN Git Service

* syscalls.cc (unlink_nt): Ignore sharing violation on NFS. Align
authorcorinna <corinna>
Fri, 24 Jul 2009 14:13:43 +0000 (14:13 +0000)
committercorinna <corinna>
Fri, 24 Jul 2009 14:13:43 +0000 (14:13 +0000)
comments.

winsup/cygwin/ChangeLog
winsup/cygwin/syscalls.cc

index c85fc04..50014d5 100644 (file)
@@ -1,3 +1,8 @@
+2009-07-24  Corinna Vinschen  <corinna@vinschen.de>
+
+       * syscalls.cc (unlink_nt): Ignore sharing violation on NFS.  Align
+       comments.
+
 2009-07-23  Corinna Vinschen  <corinna@vinschen.de>
 
        * mount.h (fs_info::fsn): New member.
index 64d9001..60db05a 100644 (file)
@@ -500,8 +500,9 @@ unlink_nt (path_conv &pc)
         though, and it is then possible to delete the file quite normally. */
 
       /* The recycle bin is only accessible locally.  For in-use remote
-        files we drop back to just returning EBUSY. */
-      if (pc.isremote () && status == STATUS_SHARING_VIOLATION)
+        files we drop back to just returning EBUSY, except for NFS. */
+      if (pc.isremote () && status == STATUS_SHARING_VIOLATION
+         && !pc.fs_is_nfs ())
        {
          if (fh_ro)
            {
@@ -511,7 +512,7 @@ unlink_nt (path_conv &pc)
            }
          return status;
        }
-      /* Only local FS and NFS w/ STATUS_LOCK_NOT_GRANTED should arrive here. */
+      /* Only local FS and NFS should arrive here. */
       if (!pc.isremote ())
        bin_stat = move_to_bin;
       if (!pc.isdir () || pc.isremote ())