From d182b68ce20be86de64b6babcdd1cdfb32a680d0 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Tue, 2 May 2006 15:58:35 +0000 Subject: [PATCH] * external.cc (cygwin_internal): Set errno on failure. --- winsup/cygwin/ChangeLog | 4 ++++ winsup/cygwin/external.cc | 1 + 2 files changed, 5 insertions(+) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index e2c25b7a0..cb54456ec 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2006-05-02 Christopher Faylor + + * external.cc (cygwin_internal): Set errno on failure. + 2006-04-27 Corinna Vinschen * pipe.cc (DEFAULT_PIPEBUFSIZE): Raise to 64K. diff --git a/winsup/cygwin/external.cc b/winsup/cygwin/external.cc index 71b790c50..62007304f 100644 --- a/winsup/cygwin/external.cc +++ b/winsup/cygwin/external.cc @@ -351,5 +351,6 @@ cygwin_internal (cygwin_getinfo_types t, ...) default: break; } + set_errno (ENOSYS); return (unsigned long) -1; }