about summary refs log tree commit diff
path: root/sysdeps/posix
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2007-02-17 18:58:25 +0000
committerUlrich Drepper <drepper@redhat.com>2007-02-17 18:58:25 +0000
commit2e0e802af03469e52cce425dc87d70e33e0f0346 (patch)
treed71ab16e80e13d585c67f685b6518a0748507852 /sysdeps/posix
parent15c4b5a48b847f11e539dc8efdbbb4e0c56821ac (diff)
downloadglibc-2e0e802af03469e52cce425dc87d70e33e0f0346.tar.gz
glibc-2e0e802af03469e52cce425dc87d70e33e0f0346.tar.xz
glibc-2e0e802af03469e52cce425dc87d70e33e0f0346.zip
[BZ #2648]
	* locales/pl_PL: Fix currency_symbol and its placement.
Diffstat (limited to 'sysdeps/posix')
-rw-r--r--sysdeps/posix/euidaccess.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sysdeps/posix/euidaccess.c b/sysdeps/posix/euidaccess.c
index 76a09d455d..333870cdde 100644
--- a/sysdeps/posix/euidaccess.c
+++ b/sysdeps/posix/euidaccess.c
@@ -1,5 +1,5 @@
 /* Check if effective user id can access file
-   Copyright (C) 1990,1991,1995-2001,2005 Free Software Foundation, Inc.
+   Copyright (C) 1990,1991,1995-2001,2005,2007 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
@@ -128,10 +128,6 @@ euidaccess (path, mode)
 #ifdef	_LIBC
   uid_t euid;
   gid_t egid;
-
-  if (! __libc_enable_secure)
-    /* If we are not set-uid or set-gid, access does the same.  */
-    return __access (path, mode);
 #else
   if (have_ids == 0)
     {
@@ -162,6 +158,10 @@ euidaccess (path, mode)
   /* Now we need the IDs.  */
   euid = __geteuid ();
   egid = __getegid ();
+
+  if (__getuid () == euid && __getgid () == egid)
+    /* If we are not set-uid or set-gid, access does the same.  */
+    return __access (path, mode);
 #endif
 
   /* The super-user can read and write any file, and execute any file