summaryrefslogtreecommitdiff
path: root/lib/euidaccess.c
AgeCommit message (Collapse)Author
2005-07-02Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.Jim Meyering
2005-06-02Don't use "path" or "filename" to mean "file name"Paul Eggert
in comments or local variable names.
2005-05-30(getuid, getgid, getuid, getegid)Paul Eggert
[!defined _POSIX_VERSION]: Remove decls; not needed these days.
2005-05-14Update FSF postal mail address.Jim Meyering
2004-09-22Remove trailing blanks.Jim Meyering
2004-07-28euidaccess.c [HAVE_LIBGEN_H]: Include <libgen.h>, forPaul Eggert
eaccess on Solaris and SVR4-like systems. (euidaccess): Use HAVE_EACCESS, not HAVE_DECL_EACCESS.
2004-07-25[!defined LIBC]: Included group-member.h, stat-macros.h.Paul Eggert
(S_IXUSR, S_IXGRP, S_IXOTH, S_IROTH, S_IWOTH, S_IXOTH): Remove; now done by stat-macros.h. (NGROUPS_MAX, group_member): Remove; now down by group-member.h. No need to include <limits.h>. (errno): Remove decl; we now assume C89 or better. (access, getuid, getgid, geteuid, getegid, stat) [defined _LIBC]: New macros. (uid, gid, have_ids): Remove these static variables. They weren't accurate for programs that also invoked setreuid etc. (euidaccess) [defined EFF_ONLY_OK || defined ACC_SELF || HAVE_DECL_EACCSS]: Use builtin substitutes. [defined _LIBC]: Ignore __libc_enable_secure; it's not a correct optimization for programs run as root that later invoke setreuid. [no builtin substitutes && HAVE_DECL_SETREGID && PREFER_NONREENTRANT_EUIDACCESS]: Use setreuid+setregid to get the correct answer. [no builtin substitutes && ! (HAVE_DECL_SETREGID && PREFER_NONREENTRANT_EUIDACCESS)]: Don't assume that the stat macros have their historical values, as POSIX doesn't require this. [defined TEST]: Include <stdlib.h>; don't include errno.h twice; include <error.h> rather than "error.h".
2004-06-30Use `file system', not filesystem in a comment.Jim Meyering
2003-09-10(main): Define with a prototype.Jim Meyering
2003-08-18Sync with gnulib.Jim Meyering
2003-02-10Include "euidaccess.h".Jim Meyering
2000-01-07Sync with the GNU C library.Jim Meyering
1998-12-07ansideclifyJim Meyering
1998-03-15Use #if, not #ifdef with HAVE_ macrosJim Meyering
1996-07-15update FSF address in copyrightJim Meyering
1996-05-21(euidaccess) [!S_IROTH]: Define.Jim Meyering
[!S_IWOTH]: Define. [!S_IXOTH]: Define. Marcus Daniels <marcus@sysc.pdx.edu> reported that m68k NEXTSTEP 3.2 doesn't define S_IROTH or S_IWOTH unless some posix compile option is used and associated symbols defined.
1995-11-03New version from glibc.Jim Meyering
1995-10-30(eaccess_stat): Make static.Jim Meyering
1995-05-19No longer include safe-l?stat.h.Jim Meyering
1995-05-13(eaccess_stat): Make statp and path arguments const.Jim Meyering
(euidaccess): Make statp argument const. Use stat, not safe_stat.
1995-01-27Declare errno if it's not defined.Jim Meyering
Rename SAFE_STAT to safe_stat.
1994-11-03Define S_IXUSR, S_IXGRP, and S_IXOTH in terms of _IEXEC if they're notJim Meyering
already defined. Reported by Daniel Hagerty <hag@gnu.ai.mit.edu>.
1994-11-01Initial revisionJim Meyering