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.
Patch sent: http://sourceware.org/ml/libc-hacker/2011-08/msg00010.html
I checked in a patch.