X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Feuidaccess.c;h=277ac3bdf9977a2a1d41ca0ead764920eda1594f;hb=93627d90a57bd8190dc5adc94685b7e2d96d9312;hp=4e032a9110ba0f36aa428faf0967f379c69ed210;hpb=6d8337bfc808cddc275899c03482eceb6aff8547;p=gnulib.git diff --git a/lib/euidaccess.c b/lib/euidaccess.c index 4e032a911..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. @@ -21,7 +21,7 @@ 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;