syscalls.cc: Use EISDIR
This is the non-POSIX value returned by Linux since 2.1.132.
This commit is contained in:
parent
17ede0eae5
commit
cbeb1009a9
|
@ -1106,7 +1106,7 @@ unlink (const char *ourname)
|
|||
else if (win32_name.isdir ())
|
||||
{
|
||||
debug_printf ("unlinking a directory");
|
||||
set_errno (EPERM);
|
||||
set_errno (EISDIR);
|
||||
goto done;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue