[Top][All Lists]

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

Re: Built-in "test -x" fails for root on FreeBSD

From: Chet Ramey
Subject: Re: Built-in "test -x" fails for root on FreeBSD
Date: Fri, 29 Apr 2011 14:45:00 -0400
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv: Gecko/20110414 Thunderbird/3.1.10

On 4/29/11 12:25 PM, Johan Hattne wrote:

> Bash Version: 4.2
> Patch Level: 8
> Release Status: release
> Description:
>   Following a report about a year ago, the determination of the
>   executable status used by bash's built-in test command was changed.
>   The original issue was that the access(2) family of functions may
>   indicate success for X_OK, even if the file does not actually have
>   any execute permission bits set.  This is allowed by the
>   specification for historical reasons, even though discouraged for new
>   implementations
> (http://pubs.opengroup.org/onlinepubs/9699919799/functions/faccessat.html).
>   On FreeBSD which provides faccessat(2) as well as eaccass(2), this
>   causes test -x to report false positives.

Thanks for the update.

``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/

reply via email to

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