bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: bash test builtin and test_eaccess() vs access()


From: Chet Ramey
Subject: Re: bash test builtin and test_eaccess() vs access()
Date: Sat, 28 Jan 2006 22:59:00 -0500
User-agent: Thunderbird 1.5 (Macintosh/20051201)

Alan Sundell wrote:
> bash's "test" builtin can report the wrong results in many
> circumstances (e.g. read-only filesystems, noexec filesystems, ACLs,
> NFS, AFS, setuid executables, etc) because it uses stat() rather than
> access() for the unary -w, -r, -x, etc.
> 
> Could the eaccess/euidaccess code from coreutils be imported into bash
> to resolve this?

I will look into it.

Chet
-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet )
                                                Live Strong.
Chet Ramey, ITS, CWRU    chet@case.edu    http://cnswww.cns.cwru.edu/~chet/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]