diff options
author | Ulrich Drepper <drepper@redhat.com> | 2001-03-30 05:34:59 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2001-03-30 05:34:59 +0000 |
commit | 28d2fb9ad9e932d7edab18815c6ff610f1f29857 (patch) | |
tree | 737a0ea071f8ae5f620401f8e3eec5b9184376ee /sysdeps/unix | |
parent | 0a51f0ac0fb51735184c7c149e80be74efbac418 (diff) | |
download | glibc-28d2fb9ad9e932d7edab18815c6ff610f1f29857.tar.gz glibc-28d2fb9ad9e932d7edab18815c6ff610f1f29857.tar.xz glibc-28d2fb9ad9e932d7edab18815c6ff610f1f29857.zip |
Update.
2001-03-29 Ulrich Drepper <drepper@redhat.com> * math/bits/mathcalls.h: Remove infnan declaration. 2001-03-29 H.J. Lu <hjl@gnu.org> * include/endian.h: Define BIG_ENDI, LITTLE_ENDI, HIGH_HALF, and LOW_HALF only if _LIBC is defined and _ISOMAC is not defined. * stdlib/isomac.c (fmt): Define _LIBC and _ISOMAC. . 2001-03-29 Isamu Hasegawa <isamu@yamato.ibm.com> * posix/regex.c: Fix typo and add a sentinel. 2001-03-29 Ulrich Drepper <drepper@redhat.com> * sysdeps/unix/sysv/linux/shm_open.c: Open new file always with O_NOFOLLOW. Suggested by Christoph Roland.
Diffstat (limited to 'sysdeps/unix')
-rw-r--r-- | sysdeps/unix/sysv/linux/shm_open.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/unix/sysv/linux/shm_open.c b/sysdeps/unix/sysv/linux/shm_open.c index 3808380851..a279cfb470 100644 --- a/sysdeps/unix/sysv/linux/shm_open.c +++ b/sysdeps/unix/sysv/linux/shm_open.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2000 Free Software Foundation, Inc. +/* Copyright (C) 2000, 2001 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -157,7 +157,7 @@ shm_open (const char *name, int oflag, mode_t mode) file on the shmfs. If this is what should be done the whole function should be revamped since we can determine whether shmfs is available while trying to open the file, all in one turn. */ - fd = open (fname, oflag, mode); + fd = open (fname, oflag | O_NOFOLLOW, mode); if (fd != -1) { /* We got a descriptor. Now set the FD_CLOEXEC bit. */ |