This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "GNU gsasl".
http://git.savannah.gnu.org/cgit/gsasl.git/commit/?id=aa1a10a71e63245f6a5bdab83ba035a95f89b9fa The branch, master has been updated via aa1a10a71e63245f6a5bdab83ba035a95f89b9fa (commit) from ae7f9a51b1e18653cf3fd47cf6a4a3c4c617fc5c (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit aa1a10a71e63245f6a5bdab83ba035a95f89b9fa Author: Simon Josefsson <[email protected]> Date: Tue Jan 12 17:13:10 2010 +0100 Update gnulib files. ----------------------------------------------------------------------- Summary of changes: gltests/dup2.c | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/gltests/dup2.c b/gltests/dup2.c index a4422bf..b9b329c 100644 --- a/gltests/dup2.c +++ b/gltests/dup2.c @@ -40,6 +40,7 @@ rpl_dup2 (int fd, int desired_fd) { int result; # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ + int fd_mode = -1; /* If fd is closed, mingw hangs on dup2 (fd, fd). If fd is open, dup2 (fd, fd) returns 0, but all further attempts to use fd in future dup2 calls will hang. */ @@ -59,6 +60,14 @@ rpl_dup2 (int fd, int desired_fd) errno = EBADF; return -1; } + /* Wine 1.0.1 puts desired_fd into binary mode when fd is in text + mode, so we save the old mode here. + http://bugs.winehq.org/show_bug.cgi?id=21291 */ + if ((HANDLE) _get_osfhandle (fd) != (HANDLE) -1) + { + fd_mode = setmode (fd, O_BINARY); + setmode (fd, fd_mode); + } # endif result = dup2 (fd, desired_fd); # ifdef __linux__ @@ -80,6 +89,12 @@ rpl_dup2 (int fd, int desired_fd) if (fd != desired_fd && result != -1) result = _gl_register_dup (fd, result); # endif +# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ + /* Restore text mode if needed. + http://bugs.winehq.org/show_bug.cgi?id=21291 */ + if (result != -1 && fd_mode != -1) + setmode (desired_fd, fd_mode); +# endif return result; } hooks/post-receive -- GNU gsasl _______________________________________________ Gsasl-commit mailing list [email protected] http://lists.gnu.org/mailman/listinfo/gsasl-commit
