X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Feuidaccess.c;h=44e0ea1127515625605497cf61d9765b79bf0f3e;hb=0e1c6ff93f27c939ba9e0df945b16ef98eaaeef1;hp=4178354742eebe6e207ac955bab4d6452cf5df6f;hpb=fae7fdcf95f035f5cd410d4a6da7aec5a3b225ee;p=gnulib.git diff --git a/lib/euidaccess.c b/lib/euidaccess.c index 417835474..44e0ea112 100644 --- a/lib/euidaccess.c +++ b/lib/euidaccess.c @@ -1,6 +1,6 @@ /* euidaccess -- check if effective user id can access file - Copyright (C) 1990-1991, 1995, 1998, 2000, 2003-2006, 2008-2011 Free + Copyright (C) 1990-1991, 1995, 1998, 2000, 2003-2006, 2008-2012 Free Software Foundation, Inc. This file is part of the GNU C Library. @@ -66,7 +66,7 @@ #endif /* Return 0 if the user has permission of type MODE on FILE; - otherwise, return -1 and set `errno'. + otherwise, return -1 and set 'errno'. Like access, except that it uses the effective user and group id's instead of the real ones, and it does not always check for read-only file system, text busy, etc. */ @@ -74,7 +74,7 @@ int euidaccess (const char *file, int mode) { -#if HAVE_FACCESSAT /* glibc */ +#if HAVE_FACCESSAT /* glibc, AIX 7, Solaris 11, Cygwin 1.7 */ return faccessat (AT_FDCWD, file, mode, AT_EACCESS); #elif defined EFF_ONLY_OK /* IRIX, OSF/1, Interix */ return access (file, mode | EFF_ONLY_OK);