mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
(_IO_new_file_fopen): Recognize 'e' flag and set O_CLOEXEC is needed.
This commit is contained in:
@ -320,6 +320,11 @@ _IO_new_file_fopen (fp, filename, mode, is32not64)
|
|||||||
case 'c':
|
case 'c':
|
||||||
fp->_flags2 |= _IO_FLAGS2_NOTCANCEL;
|
fp->_flags2 |= _IO_FLAGS2_NOTCANCEL;
|
||||||
break;
|
break;
|
||||||
|
#ifdef O_CLOEXEC
|
||||||
|
case 'e':
|
||||||
|
oflags |= O_CLOEXEC;
|
||||||
|
break;
|
||||||
|
#endif
|
||||||
default:
|
default:
|
||||||
/* Ignore. */
|
/* Ignore. */
|
||||||
continue;
|
continue;
|
||||||
|
Reference in New Issue
Block a user