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:
authorChristopher Faylor <me@cgf.cx>2003-03-13 11:18:15 +0300
committerChristopher Faylor <me@cgf.cx>2003-03-13 11:18:15 +0300
commit6fcd5661fe69035969fd1accaf6e8453315d4bca (patch)
tree6c290a2f10dffc1d1523e7f40010da95484110ea /winsup/cygwin/syscalls.cc
parent19bf3bcc3ee72df06c6680c13ef2b90b62d555bb (diff)
* syscalls.cc (rename): Assume that DELETE_ON_CLOSE works on Win9x.
* fhandler_tty.cc (fhandler_tty_slave::close): Fix typo in debug output.
Diffstat (limited to 'winsup/cygwin/syscalls.cc')
-rw-r--r--winsup/cygwin/syscalls.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc
index 6c9eea089..6c5b5dafc 100644
--- a/winsup/cygwin/syscalls.cc
+++ b/winsup/cygwin/syscalls.cc
@@ -152,8 +152,8 @@ unlink (const char *ourname)
(void) SetFileAttributes (win32_name, (DWORD) win32_name);
BOOL res = CloseHandle (h);
syscall_printf ("%d = CloseHandle (%p)", res, h);
- if (GetFileAttributes (win32_name) == INVALID_FILE_ATTRIBUTES
- || (!win32_name.isremote () && wincap.has_delete_on_close ()))
+ if (!win32_name.isremote ()
+ || GetFileAttributes (win32_name) == INVALID_FILE_ATTRIBUTES)
{
syscall_printf ("CreateFile (FILE_FLAG_DELETE_ON_CLOSE) succeeded");
goto ok;