diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2007-02-22 16:04:19 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2007-02-22 16:04:19 +0000 |
commit | 501f1020f94e73eedaf581c1371387e2ae0edb8b (patch) | |
tree | 1f8d56834d2935b6eb8d821440c3b7fdfa883647 /winsup/cygwin/dir.cc | |
parent | e387a378b452c5524665b149af41779c416134fa (diff) | |
download | cygnal-501f1020f94e73eedaf581c1371387e2ae0edb8b.tar.gz cygnal-501f1020f94e73eedaf581c1371387e2ae0edb8b.tar.bz2 cygnal-501f1020f94e73eedaf581c1371387e2ae0edb8b.zip |
Throughout remove all usage of wincap.access_denied_on_delete.
* dir.cc (rmdir): Add existance check to be errno-compatible with Linux.
* fhandler_disk_file.cc (fhandler_disk_file::rmdir): Drop test for
non-existent dir on 9x share.
* syscalls.cc (unlink): Add comment.
* wincap.cc: Remove access_denied_on_delete flag throughout.
* wincap.h: Ditto.
Diffstat (limited to 'winsup/cygwin/dir.cc')
-rw-r--r-- | winsup/cygwin/dir.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/dir.cc b/winsup/cygwin/dir.cc index 1b4e93a45..63467b7fb 100644 --- a/winsup/cygwin/dir.cc +++ b/winsup/cygwin/dir.cc @@ -309,6 +309,8 @@ rmdir (const char *dir) } else if (has_dot_last_component (dir, false)) set_errno (fh->exists () ? EINVAL : ENOENT); + else if (!fh->exists ()) + set_errno (ENOENT); else if (!fh->rmdir ()) res = 0; |