* cygerrno.h (save_errno::~save_errno): Set errno directly to avoid

flooding debug output.
This commit is contained in:
Corinna Vinschen 2009-06-08 19:44:33 +00:00
parent 590f450aa9
commit c84bbb2d8f
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -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;