diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2009-06-08 23:44:33 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2009-06-08 23:44:33 +0400 |
commit | c84bbb2d8f960ad66ed2b6737b325002c714338a (patch) | |
tree | d18a495bd01737267d0cd767e24b2d9e4e64bae9 | |
parent | 590f450aa9b3fe665bc6824ebde118b18f79c71b (diff) |
* cygerrno.h (save_errno::~save_errno): Set errno directly to avoid
flooding debug output.
-rw-r--r-- | winsup/cygwin/ChangeLog | 5 | ||||
-rw-r--r-- | winsup/cygwin/cygerrno.h | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 4957bbafe..408df09b7 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,5 +1,10 @@ 2009-06-08 Corinna Vinschen <corinna@vinschen.de> + * cygerrno.h (save_errno::~save_errno): Set errno directly to avoid + flooding debug output. + +2009-06-08 Corinna Vinschen <corinna@vinschen.de> + * path.cc (symlink_info::check): Return with error set to ENOENT if STATUS_NO_MEDIA_IN_DEVICE is returned. diff --git a/winsup/cygwin/cygerrno.h b/winsup/cygwin/cygerrno.h index e3b1011ba..e6ec7c556 100644 --- a/winsup/cygwin/cygerrno.h +++ b/winsup/cygwin/cygerrno.h @@ -44,7 +44,7 @@ class save_errno save_errno (int what) {saved = get_errno (); set_errno (what); } void set (int what) {set_errno (what); saved = what;} void reset () {saved = get_errno ();} - ~save_errno () {set_errno (saved);} + ~save_errno () {errno = _impure_ptr->_errno = saved;} }; extern const char *__sp_fn; |