public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] syscalls.cc: Use EISDIR
@ 2021-01-18 11:05 Corinna Vinschen
0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2021-01-18 11:05 UTC (permalink / raw)
To: cygwin-cvs
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=cbeb1009a9faa966821190a4a83d4a120aefd753
commit cbeb1009a9faa966821190a4a83d4a120aefd753
Author: Ben Wijen <ben@wijen.net>
Date: Fri Jan 15 14:45:27 2021 +0100
syscalls.cc: Use EISDIR
This is the non-POSIX value returned by Linux since 2.1.132.
Diff:
---
winsup/cygwin/syscalls.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc
index 3030f6fff..4742c6653 100644
--- a/winsup/cygwin/syscalls.cc
+++ b/winsup/cygwin/syscalls.cc
@@ -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;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-01-18 11:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-18 11:05 [newlib-cygwin] syscalls.cc: Use EISDIR Corinna Vinschen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).