diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index fe3b93311..34ef49f5f 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,10 @@ +2003-03-13 Christopher Faylor + + * fhandler_tty.cc (fhandler_tty_slave::close): Fix typo in debug + output. + + * syscalls.cc (rename): Assume that DELETE_ON_CLOSE works on Win9x. + 2003-03-11 Corinna Vinschen * fhandler_socket.cc (fhandler_socket::dup): Don't call diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc index 678849a01..2361643d9 100644 --- a/winsup/cygwin/fhandler_tty.cc +++ b/winsup/cygwin/fhandler_tty.cc @@ -568,7 +568,7 @@ fhandler_tty_slave::close () if (!output_done_event) { fhandler_console::open_fhs--; - termios_printf ("decremeted open_fhs %d", fhandler_console::open_fhs); + termios_printf ("decremented open_fhs %d", fhandler_console::open_fhs); } return fhandler_tty_common::close (); } 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;