Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2011-10-21 12:29:19 +0400
committerCorinna Vinschen <corinna@vinschen.de>2011-10-21 12:29:19 +0400
commit69178ca038167aac9b18b86391489ad4f1e8a3e3 (patch)
treeb7f5c52062ef3081f8fdf5b0514d323c59497ff0 /winsup/cygwin/syscalls.cc
parentb2099ee728addd34b0497bcddcc0fcd6a2503f0b (diff)
* globals.cc (ro_u_ncfsd): New R/O unicode string.
* mount.cc (fs_info::update): Check for "NcFsd" FS. Set flags and change comments accordingly. (fs_names): Add entry for NcFsd FS. * mount.h (enum fs_info_type): Add ncfsd. (class fs_info): Add ncfsd flag and accessor methods. * path.h (class path_conv): Add fs_is_ncfsd method. * syscalls.cc (unlink_nt): Experimentally try delete-on-close on NcFsd in STATUS_CANNOT_DELETE case.
Diffstat (limited to 'winsup/cygwin/syscalls.cc')
-rw-r--r--winsup/cygwin/syscalls.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc
index 76dc935e5..d4aab4db5 100644
--- a/winsup/cygwin/syscalls.cc
+++ b/winsup/cygwin/syscalls.cc
@@ -723,7 +723,8 @@ unlink_nt (path_conv &pc)
error 59, ERROR_UNEXP_NET_ERR when trying to access the file.
Microsoft KB 837665 describes this problem as a bug in 2K3, but
I have reproduced it on other systems. */
- if (status == STATUS_CANNOT_DELETE && !pc.isremote ())
+ if (status == STATUS_CANNOT_DELETE
+ && (!pc.isremote () || pc.fs_is_ncfsd ()))
{
HANDLE fh2;