Bug 13114

Summary: fopen ("non-existing-file", "re") gives wrong errno
Product: glibc Reporter: Andreas Jaeger <aj>
Component: libcAssignee: Ulrich Drepper <drepper.fsp>
Status: RESOLVED FIXED    
Severity: normal Flags: fweimer: security-
Priority: P2    
Version: 2.14   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Attachments: test case for fopen bug

Description Andreas Jaeger 2011-08-19 13:19:23 UTC
Created attachment 5906 [details]
test case for fopen bug

The test program returns on glibc 2.14 - but not on 2.11 - a wrong errno. It should return ENOENT but returns EBADF.
Comment 1 Andreas Jaeger 2011-08-19 13:48:41 UTC
Patch sent:
http://sourceware.org/ml/libc-hacker/2011-08/msg00010.html
Comment 2 Ulrich Drepper 2011-08-20 13:22:59 UTC
I checked in a patch.