X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Feuidaccess.c;h=277ac3bdf9977a2a1d41ca0ead764920eda1594f;hb=580345964476b26f12ef009230d03f5bd86ecc4e;hp=e2b19c4c9a309e8bf9d87d6fb78ba17f6a0c8911;hpb=af46584e6a90f542ea5255b4771a7497ff66931a;p=gnulib.git diff --git a/lib/euidaccess.c b/lib/euidaccess.c index e2b19c4c9..277ac3bdf 100644 --- a/lib/euidaccess.c +++ b/lib/euidaccess.c @@ -1,5 +1,5 @@ /* euidaccess -- check if effective user id can access file - Copyright (C) 1990, 1991, 1995 Free Software Foundation, Inc. + Copyright (C) 1990, 1991, 1995, 1998 Free Software Foundation, Inc. This file is part of the GNU C Library. @@ -15,13 +15,13 @@ Library General Public License for more details. You should have received a copy of the GNU Library General Public License along with the GNU C Library; see the file COPYING.LIB. If -not, write to the Free Software Foundation, Inc., 675 Mass Ave, -Cambridge, MA 02139, USA. */ +not, write to the Free Software Foundation, Inc., 59 Temple Place - +Suite 330, Boston, MA 02111-1307, USA. */ /* Written by David MacKenzie and Torbjorn Granlund. Adapted for GNU C library by Roland McGrath. */ -#ifdef HAVE_CONFIG_H +#if HAVE_CONFIG_H # include #endif @@ -111,7 +111,7 @@ static gid_t egid; /* Nonzero if UID, GID, EUID, and EGID have valid values. */ static int have_ids = 0; -# ifdef HAVE_GETGROUPS +# if HAVE_GETGROUPS int group_member (); # else # define group_member(gid) 0 @@ -127,9 +127,7 @@ int group_member (); filesystem, text busy, etc. */ int -euidaccess (path, mode) - const char *path; - int mode; +euidaccess (const char *path, int mode) { struct stat stats; int granted;