summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/delqueue.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/delqueue.cc')
-rw-r--r--winsup/cygwin/delqueue.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/winsup/cygwin/delqueue.cc b/winsup/cygwin/delqueue.cc
index 7cd7389a8..b7314eab2 100644
--- a/winsup/cygwin/delqueue.cc
+++ b/winsup/cygwin/delqueue.cc
@@ -87,7 +87,8 @@ delqueue_list::process_queue ()
int res = GetLastError ();
empty = 0;
if (res == ERROR_SHARING_VIOLATION ||
- (!iswinnt && res == ERROR_ACCESS_DENIED))
+ (wincap.access_denied_on_delete ()
+ && res == ERROR_ACCESS_DENIED))
{
/* File still inuse, that's ok */
syscall_printf ("Still using %s", name[i]);