eaccess question

Roland McGrath roland@redhat.com
Mon Jan 8 23:50:00 GMT 2007


> 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.



More information about the Libc-alpha mailing list