diff options
Diffstat (limited to 'elf')
-rw-r--r-- | elf/dl-profile.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/elf/dl-profile.c b/elf/dl-profile.c index 2ecac05..d8345da 100644 --- a/elf/dl-profile.c +++ b/elf/dl-profile.c @@ -324,7 +324,8 @@ _dl_start_profile (void) *cp++ = '/'; __stpcpy (__stpcpy (cp, GLRO(dl_profile)), ".profile"); - fd = __open64_nocancel (filename, O_RDWR|O_CREAT|O_NOFOLLOW, DEFFILEMODE); + fd = __open64_nocancel (filename, O_RDWR | O_CREAT | O_NOFOLLOW + | O_CLOEXEC, DEFFILEMODE); if (fd == -1) { char buf[400]; |