This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: eaccess question
- From: Roland McGrath <roland at redhat dot com>
- To: David Lutterkort <dlutter at redhat dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Mon, 8 Jan 2007 15:49:12 -0800 (PST)
- Subject: Re: eaccess question
> Is my understanding of eaccess ('do the same check as access but against
> euid/egid') wrong ? What is the exact intent of eaccess ? Jim Meyering
> pointed out that the eaccess implementation falls back to access if the
> process is run as root when _LIBC is defined (in
> libc/sysdeps/posix/euidaccess.c) which clearly does not mesh with my use
> of it.
Your description of the intent is correct. The code is clearly wrong in
cases where your program uses setuid et al. Please file a bug.