From e82360f6591c6013bb0abdfaad4e83efd6afcd04 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Mon, 2 Jul 2012 20:00:22 +0000 Subject: * fhandler_registry.cc (fhandler_registry::open): Handle missing EROFS error condition pointed to by Clang. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/fhandler_registry.cc | 1 + 2 files changed, 6 insertions(+) (limited to 'winsup') diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 912063c06..1e9eb5ebc 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2012-07-02 Christopher Faylor + + * fhandler_registry.cc (fhandler_registry::open): Handle missing EROFS + error condition pointed to by Clang. + 2012-07-02 Christopher Faylor * pinfo.cc (_pinfo::commune_request): Eliminate unneeded assignment diff --git a/winsup/cygwin/fhandler_registry.cc b/winsup/cygwin/fhandler_registry.cc index e0e595f19..311eac3a6 100644 --- a/winsup/cygwin/fhandler_registry.cc +++ b/winsup/cygwin/fhandler_registry.cc @@ -848,6 +848,7 @@ fhandler_registry::open (int flags, mode_t mode) { set_errno (EROFS); res = 0; + goto out; } else { -- cgit v1.2.3