* init.cc (dll_entry): Use better check for determining when to set thread
specific stuff. * syscalls.cc (_unlink): Continue with chmod'ing file even if DELETE_ON_CLOSE succeeds, if file still exists.
This commit is contained in:
@@ -91,8 +91,11 @@ _unlink (const char *ourname)
|
||||
{
|
||||
CloseHandle (h);
|
||||
syscall_printf ("CreateFile/CloseHandle succeeded");
|
||||
res = 0;
|
||||
break;
|
||||
if (i > 0 || GetFileAttributes (win32_name) == (DWORD) -1)
|
||||
{
|
||||
res = 0;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (i > 0)
|
||||
|
Reference in New Issue
Block a user