diff options
author | ngie <ngie@FreeBSD.org> | 2015-11-25 08:19:01 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2015-11-25 08:19:01 +0000 |
commit | 65f700c61c7cb7cf82a5f23c5b327700a13fe6db (patch) | |
tree | f9247d6d56ccebd8b033ebbdcbd3090bc7961c28 /lib/libc/stdio/vscanf.c | |
parent | 4aff854e252d1261ea4b6a3810379b7870f68d4a (diff) | |
download | FreeBSD-src-65f700c61c7cb7cf82a5f23c5b327700a13fe6db.zip FreeBSD-src-65f700c61c7cb7cf82a5f23c5b327700a13fe6db.tar.gz |
MFC r264737:
Discussed with: jilles
r264737 (by 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.
Diffstat (limited to 'lib/libc/stdio/vscanf.c')
0 files changed, 0 insertions, 0 deletions