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 /nptl | |
parent | af1ff65986677e1ee29b6adc2750163c64b5aaef (diff) | |
download | glibc-f9a06dc1b5f83ddd6448c6bf80dfe9e02eb97a3d.zip glibc-f9a06dc1b5f83ddd6448c6bf80dfe9e02eb97a3d.tar.gz glibc-f9a06dc1b5f83ddd6448c6bf80dfe9e02eb97a3d.tar.bz2 |
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 'nptl')
-rw-r--r-- | nptl/ChangeLog | 4 | ||||
-rw-r--r-- | nptl/sem_unlink.c | 7 |
2 files changed, 9 insertions, 2 deletions
diff --git a/nptl/ChangeLog b/nptl/ChangeLog index 501791c..9e3717d 100644 --- a/nptl/ChangeLog +++ b/nptl/ChangeLog @@ -1,3 +1,7 @@ +2004-04-20 Jakub Jelinek <jakub@redhat.com> + + * sem_unlink.c (sem_unlink): Change EPERM into EACCES. + 2004-04-19 Kaz Kojima <kkojima@rr.iij4u.or.jp> * sysdeps/unix/sysv/linux/sh/sem_timedwait.S: Add frame info. diff --git a/nptl/sem_unlink.c b/nptl/sem_unlink.c index 92288df..1707477 100644 --- a/nptl/sem_unlink.c +++ b/nptl/sem_unlink.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2002 Free Software Foundation, Inc. +/* Copyright (C) 2002, 2004 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@redhat.com>, 2002. @@ -60,5 +60,8 @@ sem_unlink (name) name, namelen + 1); /* Now try removing it. */ - return unlink (fname); + int ret = unlink (fname); + if (ret < 0 && errno == EPERM) + __set_errno (EACCES); + return ret; } |