This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/10511] popen() returns fp on non existing file
- From: "ebb9 at byu dot net" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 22 Feb 2010 23:16:37 -0000
- Subject: [Bug libc/10511] popen() returns fp on non existing file
- References: <20090812073505.10511.wharms@bfs.de>
- Reply-to: sourceware-bugzilla at sourceware dot org
------- Additional Comments From ebb9 at byu dot net 2010-02-22 23:16 -------
Actually, POSIX is quite clear that popen succeeds if it opens a pipe to the
shell that runs the command, regardless of whether that shell then immediately
exits because it was asked to execute a command that does not exist. The only
bug here is that you did not check the status returned from pclose() to detect
the failure to launch a child successfully.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
http://sourceware.org/bugzilla/show_bug.cgi?id=10511
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.