diff options
author | Christopher Faylor <me@cgf.cx> | 2012-07-03 00:00:22 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2012-07-03 00:00:22 +0400 |
commit | e82360f6591c6013bb0abdfaad4e83efd6afcd04 (patch) | |
tree | 65ec8268f4b2e333f1567a334cbf1e8742e52985 | |
parent | e9d7f5b3a9c2cac10d720631b40f610be441daa9 (diff) |
* fhandler_registry.cc (fhandler_registry::open): Handle missing EROFS error
condition pointed to by Clang.
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/fhandler_registry.cc | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 912063c06..1e9eb5ebc 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,5 +1,10 @@ 2012-07-02 Christopher Faylor <me.cygwin2012@cgf.cx> + * fhandler_registry.cc (fhandler_registry::open): Handle missing EROFS + error condition pointed to by Clang. + +2012-07-02 Christopher Faylor <me.cygwin2012@cgf.cx> + * pinfo.cc (_pinfo::commune_request): Eliminate unneeded assignment found by Clang. 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 { |