X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Feuidaccess.c;h=b12eb467a9f9e44b8f7d59aaea0c6ad7a4b2345b;hb=6f9dd7d3ecceb8a939ea537b6d9abc9988bc4c71;hp=29efc2b64f42664ae817e6c941c9a0ef83492f66;hpb=89e5b6ba033f08b6ea0d9756d523552b439c2d65;p=gnulib.git diff --git a/lib/euidaccess.c b/lib/euidaccess.c index 29efc2b64..b12eb467a 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-2010 Free + Copyright (C) 1990-1991, 1995, 1998, 2000, 2003-2006, 2008-2011 Free Software Foundation, Inc. This file is part of the GNU C Library. @@ -63,10 +63,6 @@ # undef stat # define stat stat64 -#else - -# include "group-member.h" - #endif /* Return 0 if the user has permission of type MODE on FILE; @@ -78,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);