* syscalls.cc (rename): Assume that DELETE_ON_CLOSE works on Win9x.

* fhandler_tty.cc (fhandler_tty_slave::close): Fix typo in debug output.
This commit is contained in:
Christopher Faylor
2003-03-13 08:18:15 +00:00
parent 19bf3bcc3e
commit 6fcd5661fe
3 changed files with 10 additions and 3 deletions

View File

@@ -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;