This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]