projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
regex: port to Stratus OpenVOS
[gnulib.git]
/
lib
/
euidaccess.c
diff --git
a/lib/euidaccess.c
b/lib/euidaccess.c
index
ba744d5
..
4178354
100644
(file)
--- a/
lib/euidaccess.c
+++ b/
lib/euidaccess.c
@@
-1,6
+1,6
@@
/* euidaccess -- check if effective user id can access file
/* euidaccess -- check if effective user id can access file
- Copyright (C) 1990-1991, 1995, 1998, 2000, 2003-2006, 2008-201
0
Free
+ Copyright (C) 1990-1991, 1995, 1998, 2000, 2003-2006, 2008-201
1
Free
Software Foundation, Inc.
This file is part of the GNU C Library.
Software Foundation, Inc.
This file is part of the GNU C Library.
@@
-63,10
+63,6
@@
# undef stat
# define stat stat64
# undef stat
# define stat stat64
-#else
-
-# include "group-member.h"
-
#endif
/* Return 0 if the user has permission of type MODE on FILE;
#endif
/* Return 0 if the user has permission of type MODE on FILE;
@@
-78,15
+74,15
@@
int
euidaccess (const char *file, int mode)
{
int
euidaccess (const char *file, int mode)
{
-#if HAVE_FACCESSAT
+#if HAVE_FACCESSAT
/* glibc */
return faccessat (AT_FDCWD, file, mode, AT_EACCESS);
return faccessat (AT_FDCWD, file, mode, AT_EACCESS);
-#elif defined EFF_ONLY_OK
+#elif defined EFF_ONLY_OK
/* IRIX, OSF/1, Interix */
return access (file, mode | EFF_ONLY_OK);
return access (file, mode | EFF_ONLY_OK);
-#elif defined ACC_SELF
+#elif defined ACC_SELF
/* AIX */
return accessx (file, mode, ACC_SELF);
return accessx (file, mode, ACC_SELF);
-#elif HAVE_EACCESS
+#elif HAVE_EACCESS
/* FreeBSD */
return eaccess (file, mode);
return eaccess (file, mode);
-#else
+#else
/* MacOS X, NetBSD, OpenBSD, HP-UX, Solaris, Cygwin, mingw, BeOS */
uid_t uid = getuid ();
gid_t gid = getgid ();
uid_t uid = getuid ();
gid_t gid = getgid ();