This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: eaccess question
- From: David Lutterkort <dlutter at redhat dot com>
- To: Roland McGrath <roland at redhat dot com>
- Cc: libc-alpha at sourceware dot org
- Date: Mon, 08 Jan 2007 16:13:28 -0800
- Subject: Re: eaccess question
- References: <20070108234912.B0ECF1800E5@magilla.sf.frob.com>
On Mon, 2007-01-08 at 15:49 -0800, Roland McGrath wrote:
> > 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.
Thanks for the quick reply. Filed as
http://sourceware.org/bugzilla/show_bug.cgi?id=3846
David