4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-02-18 23:12:15 +08:00

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

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