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:
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…
x
Reference in New Issue
Block a user