threads / bug / 24761

[FreeBSD? BUG]: t1304-default-acl.sh fails on FreeBSD 8.1-STABLE

Subject: [FreeBSD? BUG]: t1304-default-acl.sh fails on FreeBSD 8.1-STABLE

## tl;dr

2 messages between Aug 17, 2010 and Aug 18, 2010.

replies: 1people: 1as markdown or json

Ævar Arnfjörð Bjarmason· Aug 17, 2010, 03:17 UTC · lore

t/t1304-default-acl.sh fails on FreeBSD, seemingly because setfacl on FreeBSD doesn't have a meaningful return code:

    $ setfacl -m u:root:rwx . ; echo $?
    setfacl: .: acl_get_file() failed: Operation not supported
    0
But on Linux:
    $ setfacl -m u:root:rwx . ; echo $?
    setfacl: .: Operation not supported
    1
The Solaris setfacl also behaves.
The FreeBSD manpage says this:
    EXIT STATUS
         The setfacl utility exits 0 on success, and >0 if an error occurs.
Anyone here know more about FreeBSD to shed light on this?
Ævar Arnfjörð Bjarmason· Aug 18, 2010, 19:14 UTC · re: Ævar Arnfjörð Bjarmason · lore

Re: [FreeBSD? BUG]: t1304-default-acl.sh fails on FreeBSD 8.1-STABLE

On Tue, Aug 17, 2010 at 03:17, Ævar Arnfjörð Bjarmason <avarab@gmail.com> wrote:
Show 21 quoted lines
> t/t1304-default-acl.sh fails on FreeBSD, seemingly because setfacl on
> FreeBSD doesn't have a meaningful return code:
>
>    $ setfacl -m u:root:rwx . ; echo $?
>    setfacl: .: acl_get_file() failed: Operation not supported
>    0
>
> But on Linux:
>
>    $ setfacl -m u:root:rwx . ; echo $?
>    setfacl: .: Operation not supported
>    1
>
> The Solaris setfacl also behaves.
>
> The FreeBSD manpage says this:
>
>    EXIT STATUS
>         The setfacl utility exits 0 on success, and >0 if an error occurs.
>
> Anyone here know more about FreeBSD to shed light on this?

I sent this upstream with a patch: http://www.freebsd.org/cgi/query-pr.cgi?pr=149780

← back to recent threads