From 28d2fb9ad9e932d7edab18815c6ff610f1f29857 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 30 Mar 2001 05:34:59 +0000 Subject: Update. 2001-03-29 Ulrich Drepper * math/bits/mathcalls.h: Remove infnan declaration. 2001-03-29 H.J. Lu * 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 * posix/regex.c: Fix typo and add a sentinel. 2001-03-29 Ulrich Drepper * sysdeps/unix/sysv/linux/shm_open.c: Open new file always with O_NOFOLLOW. Suggested by Christoph Roland. --- sysdeps/unix/sysv/linux/shm_open.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sysdeps/unix/sysv') diff --git a/sysdeps/unix/sysv/linux/shm_open.c b/sysdeps/unix/sysv/linux/shm_open.c index 3808380..a279cfb 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. */ -- cgit v1.1