From c49e22560237d246bb2a5351b0c207559929ae52 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Wed, 27 Feb 2013 20:00:57 +0200 Subject: [PATCH] w32.c (sys_open): Don't reset the flags for FD in fd_info[]. Related to bug #13546. --- src/ChangeLog | 5 +++++ src/w32.c | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 42a2fd0dcac..aa3d42d8042 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2013-02-27 Eli Zaretskii + + * w32.c (sys_open): Don't reset the flags for FD in fd_info[]. + (Bug#13546). + 2013-02-24 Andreas Schwab * xdisp.c (set_message): Only check for debug-on-message if STRING diff --git a/src/w32.c b/src/w32.c index dbb090d61f9..56b840df797 100644 --- a/src/w32.c +++ b/src/w32.c @@ -3126,8 +3126,6 @@ sys_open (const char * path, int oflag, int mode) int res = _open (mpath, (oflag & ~_O_CREAT) | _O_NOINHERIT, mode); if (res < 0) res = _open (mpath, oflag | _O_NOINHERIT, mode); - if (res >= 0 && res < MAXDESC) - fd_info[res].flags = 0; return res; } -- 2.39.2