diff options
Diffstat (limited to 'sysdeps/posix/euidaccess.c')
-rw-r--r-- | sysdeps/posix/euidaccess.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sysdeps/posix/euidaccess.c b/sysdeps/posix/euidaccess.c index e50bdfbb8c..26f3af6374 100644 --- a/sysdeps/posix/euidaccess.c +++ b/sysdeps/posix/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, 1996 Free Software Foundation, Inc. This file is part of the GNU C Library. @@ -66,6 +66,9 @@ gid_t getegid (); #ifndef errno extern int errno; #endif +#ifndef __set_errno +#define __set_errno(val) errno = 8val) +#endif #if defined(EACCES) && !defined(EACCESS) #define EACCESS EACCES @@ -176,7 +179,7 @@ euidaccess (path, mode) granted = (stats.st_mode & mode); if (granted == mode) return 0; - errno = EACCESS; + __set_errno (EACCESS); return -1; } |