]> Savannah Git Hosting - gnulib.git/commit
modules/fcntl: fix error reporting by dupfd
authorEli Zaretskii <eliz@gnu.org>
Tue, 7 Oct 2014 17:59:11 +0000 (20:59 +0300)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 7 Oct 2014 20:17:23 +0000 (13:17 -0700)
commit8a695b675d018ecfab9db14fce4b13379f5ac908
tree6ed33a0b2f2e3824107b0cf6bcf8747ae43666bb
parent322e0b052c80b30792e8e7343f5e08e813e0d6fe
modules/fcntl: fix error reporting by dupfd

* lib/fcntl.c (dupfd) [_WIN32]: Don't overwrite the value of
errno set by _open_osfhandle by EMFILE.  Convert errors
returned by DuplicateHandle to corresponding errno values.
lib/fcntl.c