diff options
author | Ulrich Drepper <drepper@redhat.com> | 2004-04-20 18:58:56 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2004-04-20 18:58:56 +0000 |
commit | f9a06dc1b5f83ddd6448c6bf80dfe9e02eb97a3d (patch) | |
tree | 0293530bb5e96f892765635e2a52c0ba5bd54d3b /sysdeps/unix | |
parent | af1ff65986677e1ee29b6adc2750163c64b5aaef (diff) | |
download | glibc-f9a06dc1b5f83ddd6448c6bf80dfe9e02eb97a3d.tar.gz glibc-f9a06dc1b5f83ddd6448c6bf80dfe9e02eb97a3d.tar.xz glibc-f9a06dc1b5f83ddd6448c6bf80dfe9e02eb97a3d.zip |
Update.
2004-04-20 Jakub Jelinek <jakub@redhat.com> * sysdeps/unix/sysv/linux/shm_open.c (shm_unlink): Change EPERM into EACCES. 2004-04-20 Jakub Jelinek <jakub@redhat.com> * stdio-common/vfscanf.c (_IO_vfscanf): Revert last %% whitespace handling change. * stdio-common/tst-sscanf.c (int_tests): Adjust. * nis/nss-nis.c: Include stdlib.h. * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Shut up a warning. * sysdeps/sparc/sparc64/memcmp.S (memcmp): Remove BP_SYM () from libc_hidden_builtin_def. 2004-04-20 Jim Meyering <jim@meyering.net> * misc/error.c (error_tail): Don't leak upon realloc failure. 2004-04-20 Martin Schwidefsky <schwidefsky@de.ibm.com> * sysdeps/unix/sysv/linux/dl-execstack.c (_dl_make_stack_executable): Use RETURN_ADDRESS instead of __builtin_return_address.
Diffstat (limited to 'sysdeps/unix')
-rw-r--r-- | sysdeps/unix/sysv/linux/dl-execstack.c | 2 | ||||
-rw-r--r-- | sysdeps/unix/sysv/linux/shm_open.c | 7 |
2 files changed, 6 insertions, 3 deletions
diff --git a/sysdeps/unix/sysv/linux/dl-execstack.c b/sysdeps/unix/sysv/linux/dl-execstack.c index 248196040a..3ca9b0b835 100644 --- a/sysdeps/unix/sysv/linux/dl-execstack.c +++ b/sysdeps/unix/sysv/linux/dl-execstack.c @@ -37,7 +37,7 @@ _dl_make_stack_executable (void **stack_endp) & -(intptr_t) GLRO(dl_pagesize)); /* Challenge the caller. */ - if (__builtin_expect (__check_caller (__builtin_return_address (0), + if (__builtin_expect (__check_caller (RETURN_ADDRESS (0), allow_ldso|allow_libpthread) != 0, 0) || __builtin_expect (*stack_endp != __libc_stack_end, 0)) return EPERM; diff --git a/sysdeps/unix/sysv/linux/shm_open.c b/sysdeps/unix/sysv/linux/shm_open.c index 73804f5349..2e94b76cdb 100644 --- a/sysdeps/unix/sysv/linux/shm_open.c +++ b/sysdeps/unix/sysv/linux/shm_open.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2000, 2001, 2002, 2003 Free Software Foundation, Inc. +/* Copyright (C) 2000, 2001, 2002, 2003, 2004 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 @@ -227,7 +227,10 @@ shm_unlink (const char *name) name, namelen + 1); /* And remove the file. */ - return unlink (fname); + int ret = unlink (fname); + if (ret < 0 && errno == EPERM) + __set_errno (EACCES); + return ret; } |