This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug stdio/15589] freopen would close oldfd even though oldfd is same as newfd
- From: "eggert at gnu dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Sat, 26 Nov 2016 02:26:50 +0000
- Subject: [Bug stdio/15589] freopen would close oldfd even though oldfd is same as newfd
- Auto-submitted: auto-generated
- References: <bug-15589-131@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=15589
Paul Eggert <eggert at gnu dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |eggert at gnu dot org
--- Comment #6 from Paul Eggert <eggert at gnu dot org> ---
This bug turns out to break GNU core utilities like 'uniq' and 'shuf'. See
coreutils Bug#25029:
https://bugs.gnu.org/25029
I suppose we will look into a workaround by adding a Gnulib wrapper for
freopen, but it would be nicer if this bug were fixed in glibc.
Also, Bug#15701 appears to be a duplicate of this bug.
--
You are receiving this mail because:
You are on the CC list for the bug.