Please revert git commit 1ad3dcc0

From: Bernd Schmidt
Date: Tue May 16 2006 - 07:23:55 EST

Linus, Andrew,

please revert 1ad3dcc0. That was a patch to the binfmt_flat loader, which was motivated by an LTP testcase which checks that execve returns EMFILE when the file descriptor table is full.

The patch is buggy: the code now keeps file descriptors open for the executable and its libraries, which has confused at least one application. It's also unnecessary, since there is no code that uses the file descriptor, so the new EMFILE error return is totally artificial.

The reversion is
Signed-off-by: Bernd Schmidt <>
Signed-off-by: Greg Ungerer <gerg@xxxxxxxxxxx>
and I think Luke had no objections either.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at