[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: access, euidaccess tests: Avoid test failure for root user on Solari
From: |
Collin Funk |
Subject: |
Re: access, euidaccess tests: Avoid test failure for root user on Solaris |
Date: |
Tue, 21 May 2024 15:04:51 -0700 |
User-agent: |
Mozilla Thunderbird |
On 5/21/24 6:45 AM, Bruno Haible wrote:
> The CI runs the Solaris 11 and Solaris 11 OmniOS tests as root, and shows
> these two test failures:
>
> FAIL: test-access
> FAIL: test-euidaccess
>
> This occurs because although the file does not have the 'x' bit set,
> for root faccessat() returns 0.
>
> POSIX <https://pubs.opengroup.org/onlinepubs/9699919799/functions/access.html>
> says "New implementations are discouraged from returning X_OK unless at least
> one execution permission bit is set." — which means that Solaris counts as
> an "old" implementation here.
Thanks for the fix. After the fixing the fnmatch test I had a brief
look at this and got confused. I didn't know they were run as root (CI
is new to me).
Collin