Re: bsd group semantics

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Junio C Hamano <gitster@...>
Cc: Alex Riesen <raa.lkml@...>, <git@...>
Date: Tuesday, March 31, 2009 - 12:08 pm

On Tue, Mar 31, 2009 at 08:55:00AM -0700, Junio C Hamano wrote:


OK, I see. Thanks for the explanation. So the test is wrong, since it
explicitly checks for g+s, and we only need it sometimes.


Yes, you can ask just fine now:

  $ uname -sr
  FreeBSD 6.1-RELEASE-p17-jc1
  $ mkdir foo
  $ ls -ld foo
  drwxr-xr-x  2 peff  peff  512 Mar 31 09:04 foo/
  $ chmod g+s foo
  $ ls -ld foo
  drwxr-sr-x  2 peff  peff  512 Mar 31 09:04 foo/

But it isn't necessary.


Shouldn't that just be:

  perl -e 'sub group { return (stat(shift))[5] }' \
       -e 'exit group($ARGV[0]) == group($ARGV[1]) ? 0 : 1' \
       a b

?

-Peff
--
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
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
bsd group semantics, Jeff King, (Tue Mar 31, 7:26 am)
Re: bsd group semantics, Junio C Hamano, (Tue Mar 31, 11:55 am)
Re: bsd group semantics, Jeff King, (Tue Mar 31, 12:08 pm)
Re: bsd group semantics, Junio C Hamano, (Tue Mar 31, 1:32 pm)
Re: bsd group semantics, Jeff King, (Tue Mar 31, 2:46 pm)
Re: bsd group semantics, Junio C Hamano, (Tue Mar 31, 4:26 pm)
Re: bsd group semantics, Jeff King, (Tue Mar 31, 4:36 pm)
Re: bsd group semantics, Junio C Hamano, (Tue Mar 31, 5:33 pm)
Re: bsd group semantics, Jeff King, (Tue Mar 31, 6:25 pm)