This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/4559] freopen failed if asked to open /dev/stdin
- From: "addw at phcomp dot co dot uk" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 30 May 2007 21:55:36 -0000
- Subject: [Bug libc/4559] freopen failed if asked to open /dev/stdin
- References: <20070529175344.4559.addw@phcomp.co.uk>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From addw at phcomp dot co dot uk 2007-05-30 21:55 -------
That works if you are writing a C program. If someprogram that uses freopen()
and you give it a command line argument of /dev/stdin, expecting it to process
stdin, you will get a nasty surprise.
For this to work the program itself would need to specially recognise /dev/stdin
and /dev/fd/0 and ....
I am trying to make life easy for the application writer.
--
http://sourceware.org/bugzilla/show_bug.cgi?id=4559
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.