Git development
 help / color / mirror / Atom feed
From: Scott Parrish <wsparrish@gmail.com>
To: Brandon Casey <drafnel@gmail.com>
Cc: wsp 
	<reply+c-729354-3460aca0fa61e627f9d1a271cf70a99d5c1e7e4e-921167@reply.github.com>,
	Git Mailing List <git@vger.kernel.org>
Subject: Re: t/t1304: avoid -d option to setfacl (db82657)
Date: Sat, 19 Nov 2011 15:28:49 -0500	[thread overview]
Message-ID: <D95BFEA0-BAC1-4CBD-8B56-27DB4BDF147C@gmail.com> (raw)
In-Reply-To: <CA+sFfMc6BCPvk1FCjZwyY_pWqXBut3D--OfrFEcfK5p97D-KHQ@mail.gmail.com>

Hi Brandon,

Thanks for posting my question. I realized shortly after my post to github that I should have posted to the mailing list instead.


On Nov 18, 2011, at 12:37 AM, Brandon Casey wrote:

> [cc git@vger.kernel.org since that is the appropriate place for this discusion]
> 
> On Thu, Nov 17, 2011 at 8:59 PM, wsp
> <reply+c-729354-3460aca0fa61e627f9d1a271cf70a99d5c1e7e4e-921167@reply.github.com>
> wrote:
>> Could this test case be reviewed again? It fails on FreeBSD where the appropriate way to specify default ACL's is with the "-d" option. The "d[efault]:" syntax is invalid on FreeBSD.
> 
> Well, I'm not sure there is a right answer here.
> 
>   Linux accepts -d or "d[efault]"
>   Solaris only accepts "d[efault]"
>   FreeBSD only accepts -d
>   a quick search shows z/OS only accepts "d[efault]"
>   other?
> 
> I think most everything else rolls their own implementation into chmod
> or chacl or something like that.

OS X does indeed roll ACL management into chmod. The test passes there because the prereq isn't met (i.e. the setfacl command does not exist) and thus the tests are skipped.
> 
> The abandoned POSIX draft does actually specify the FreeBSD behavior.
> 
> So I think it's kind of a toss-up.  Which option we choose should
> probably depend on whether we get more test coverage by using the
> "d[efault]" notation or by using the -d option.  That depends on
> whether there are more Solaris users compiling git or whether there
> are more FreeBSD users.  I don't know the answer to that either.  I
> tend to think there are very few of either.

Is there a reason conditional logic can't be used (perhaps keying off of `uname -s` or the like) so that we have coverage in all cases?

-S

> 
> -Brandon
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2011-11-19 20:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <gitster/git/commit/db826571e4099066fe44233d95642591016c831b@github.com>
     [not found] ` <gitster/git/commit/db826571e4099066fe44233d95642591016c831b/729354@github.com>
2011-11-18  5:37   ` t/t1304: avoid -d option to setfacl (db82657) Brandon Casey
2011-11-19 20:28     ` Scott Parrish [this message]
2011-11-29 12:23       ` Jeff King

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=D95BFEA0-BAC1-4CBD-8B56-27DB4BDF147C@gmail.com \
    --to=wsparrish@gmail.com \
    --cc=drafnel@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=reply+c-729354-3460aca0fa61e627f9d1a271cf70a99d5c1e7e4e-921167@reply.github.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox