#
264737 |
|
21-Apr-2014 |
jilles |
libc/stdio: Fail fdopen() on an execute-only fd.
An execute-only fd (opened with O_EXEC) allows neither read() nor write() and is therefore incompatible with all stdio modes. Therefore, the [EINVAL] error applies.
Also adjust the similar check in freopen() with a NULL path, even though this checks an fd which is already from a FILE.
|