diff options
author | Florian Weimer <fweimer@redhat.com> | 2017-04-13 21:28:18 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2017-04-13 21:28:18 +0200 |
commit | a12ae89f860229cbe5ba91f1f9cf17cc5a9ede31 (patch) | |
tree | 3b22b435b0081a1f52f68db25d66b253d0b71337 /elf/dl-profile.c | |
parent | 44500cbb25bc6e76723304b9ff39f875c04309f9 (diff) | |
download | glibc-a12ae89f860229cbe5ba91f1f9cf17cc5a9ede31.zip glibc-a12ae89f860229cbe5ba91f1f9cf17cc5a9ede31.tar.gz glibc-a12ae89f860229cbe5ba91f1f9cf17cc5a9ede31.tar.bz2 |
Assume that O_NOFOLLOW is always defined
Diffstat (limited to 'elf/dl-profile.c')
-rw-r--r-- | elf/dl-profile.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/elf/dl-profile.c b/elf/dl-profile.c index 01aaf31..a4f1108 100644 --- a/elf/dl-profile.c +++ b/elf/dl-profile.c @@ -325,12 +325,7 @@ _dl_start_profile (void) *cp++ = '/'; __stpcpy (__stpcpy (cp, GLRO(dl_profile)), ".profile"); -#ifdef O_NOFOLLOW -# define EXTRA_FLAGS | O_NOFOLLOW -#else -# define EXTRA_FLAGS -#endif - fd = __open (filename, O_RDWR | O_CREAT EXTRA_FLAGS, DEFFILEMODE); + fd = __open (filename, O_RDWR | O_CREAT | O_NOFOLLOW, DEFFILEMODE); if (fd == -1) { char buf[400]; |