diff options
author | Christopher Faylor <me@cgf.cx> | 2003-03-13 08:18:15 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2003-03-13 08:18:15 +0000 |
commit | 6fcd5661fe69035969fd1accaf6e8453315d4bca (patch) | |
tree | 6c290a2f10dffc1d1523e7f40010da95484110ea /winsup/cygwin/syscalls.cc | |
parent | 19bf3bcc3ee72df06c6680c13ef2b90b62d555bb (diff) | |
download | cygnal-6fcd5661fe69035969fd1accaf6e8453315d4bca.tar.gz cygnal-6fcd5661fe69035969fd1accaf6e8453315d4bca.tar.bz2 cygnal-6fcd5661fe69035969fd1accaf6e8453315d4bca.zip |
* 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.cc | 4 |
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; |