mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-28 00:21:52 +03:00
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.
This commit is contained in:
@ -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. */
|
||||
|
Reference in New Issue
Block a user