syscalls.cc: Use EISDIR

This is the non-POSIX value returned by Linux since 2.1.132.
This commit is contained in:
Ben Wijen 2021-01-15 14:45:27 +01:00 committed by Corinna Vinschen
parent 17ede0eae5
commit cbeb1009a9
1 changed files with 1 additions and 1 deletions

View File

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