From 501f1020f94e73eedaf581c1371387e2ae0edb8b Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Thu, 22 Feb 2007 16:04:19 +0000 Subject: 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. --- winsup/cygwin/delqueue.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'winsup/cygwin/delqueue.cc') diff --git a/winsup/cygwin/delqueue.cc b/winsup/cygwin/delqueue.cc index 76f2d6d19..2cc14d546 100644 --- a/winsup/cygwin/delqueue.cc +++ b/winsup/cygwin/delqueue.cc @@ -1,6 +1,6 @@ /* delqueue.cc - Copyright 1996, 1998, 1999, 2000, 2001 Red Hat, Inc. + Copyright 1996, 1998, 1999, 2000, 2001, 2007 Red Hat, Inc. This file is part of Cygwin. @@ -86,9 +86,7 @@ delqueue_list::process_queue () { int res = GetLastError (); empty = 0; - if (res == ERROR_SHARING_VIOLATION || - (wincap.access_denied_on_delete () - && res == ERROR_ACCESS_DENIED)) + if (res == ERROR_SHARING_VIOLATION) { /* File still inuse, that's ok */ syscall_printf ("Still using %s", name[i]); -- cgit v1.2.3