delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/12/23/05:50:35

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=psAiH9miUO+ciBC7+kMQTLFGWiVYSbdfkldXViIl7gSG22qCw3ABa
0d5oowLuPEjMcemlOr/n37Lj077PbZZJ8El/Ux0Ftk9qOHOrXL/3kUEIsp4DpQU2
lySEWUzanwUccV5PS5lU10nASr9cSHAdUSwpXZ/E90iP3o4/RpyHd8=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=TdX1udQ/FPkzG3dMCvM9mTNz0jc=; b=aPkp4kyhhfcIFP8q9DpcHqz/S3Rs
TTdRFzWNgZkLxRc+/cl+wW5x8YBShhuZvtJIQidn617p9H0+anqTm6OJ+PDsgyGE
gZ9FJNmgTZ5r2fUwROths4AZkpbO+Q/NfELxa1FYEwXEpftVGTkD+K+khgUqal9j
kU2y+XsgBWSSk64=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-101.9 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,KHOP_DYNAMIC,RCVD_IN_PBL,RDNS_DYNAMIC,USER_IN_WHITELIST autolearn=no version=3.3.2 spammy=perms, HX-HELO:sk:calimer, H*r:188.192.47, Hx-spam-relays-external:sk:ipbcc02
X-HELO: calimero.vinschen.de
Date: Wed, 23 Dec 2015 11:50:15 +0100
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: setfacl(2.4.0.15): for next year !!!!!
Message-ID: <20151223105015.GB27818@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <6ea00be43c852b42e0e59adcb23d0004 AT xs4all DOT nl> <20151221172503 DOT GK4034 AT calimero DOT vinschen DOT de> <5eb15a91b67658daba604310dcaa20ee AT xs4all DOT nl> <b8b736649f0619b50225f7f0a0d182b5 AT xs4all DOT nl>
MIME-Version: 1.0
In-Reply-To: <b8b736649f0619b50225f7f0a0d182b5@xs4all.nl>
User-Agent: Mutt/1.5.24 (2015-08-30)

--nFreZHaLTZJo0R7j
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Dec 22 15:42, Houder wrote:
> On 2015-12-22 12:37, Houder wrote:
> >On 2015-12-21 18:25, Corinna Vinschen wrote:
> >>On Dec 21 17:30, Houder wrote:
> >>>Hi Corinna,
> >>>
> >>>For next year !!!!! (posted as a reminder) ... See below.
> >>
> >>Next year?  Nope... see below.
> >>
> >
> >Hi Corinna,
> >
> >Thank you for all the hard work you do ...
> >
> >As an encore (for this year though ;-). See below (Cygwin-2.4.0-0.16).
> ><=3D=3D=3D=3D 16
> [snip]
>=20
> >64-%% setfacl -m m:rwx bar.txt
> >64-%% getfacl bar.txt
> ># file: bar.txt
> ># owner: Henri
> ># group: None
> >user::rw-
> >group::r--
> >mask:rwx <=3D=3D=3D=3D yes, as requested by me, but ...
> >other:r--
> >
> >64-%% ls -l bar.txt
> >-rw-rwxr-- 1 Henri None 0 Dec 22 12:21 bar.txt
> >
> > - does this output make sense?
> >   (no access to Linux at the moment; cannot verify)
>=20
> Just got myself access to Linux (FC19) ... old, yes.
>=20
> FC19 has the same "weird" (to me) behaviour as Cygwin now has.

It's correct.  The rule is that the group perms reflect the mask
if a mask is present, the primary group perms otherwise.

> The
> difference is that 'ls -l' on FC19 shows an additional plus sign.

This is a problem in ls itself.  The reason is that with the start of
reimplementing the ACL handling (back in August 2014), the definition of
MIN_ACL_ENTRIES changed from 4 to 3.

I recall having a discussion with eblake (coreutils maintainer) via IRC
in 2014 where we discussed this.  At that time the mask entry was only
fasked, so we came up with the fact that there's never an aclent_t with
4 entries, so ls is still using the old definition to maintain backward
compat.

With the new code in 2.4.0 it's probably time to drop this Cygwin-specific
workaround in coreutils (but it doesn't hurt much either).


Corinna

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--nFreZHaLTZJo0R7j
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJWenxnAAoJEPU2Bp2uRE+gtikP/iryrcYbXGwsFMx6nBrBeaE+
+FT50Sqhq5VYGqpxZyOuTQRdZ+Kfu07bJwTVoQ2XFYAWrxnY1tYBV48xGNTKxDdS
vIW6SWcg92uf6ECoTzz9S8kYVsH/N801s81EYx6EwEilhR/ws2BAoqqe/2C/UzF7
B54nMHX3dWmex7QHCPYeb8vggscPVQ+N6WpD6Vjsrq2Mlst2hn5fJeG8OuLpF7tE
mAJOt2vzdl+bARBknMSOolZ88BotEjZ/9NGQae4RpYSleFx3wgcInAQpVbm+CK4/
1mTecoXJEQASSDxxsn5A6JYtBzfRneOzbkEg2ojo6NGAivsJV424FljqBceWqkQA
cnqWvYFjnhJONOA0SwfZy9+O45R5Iyet3pLxGFiAq3AxRhOBUY8xGh5d2/tbtZCu
2R1zgL5GFyb26m0K8t1O8XbkLqJSwFhFXBDgo2iR68PiWA2m6hkN7GD4xMxwHO43
M98uNF/iKFGICWwcsIKAl0sp3eurxGHQObj+eRUgikKIrjf2T2HtutNlIoIR9bgz
smcDY/Qsy6/i5GFHkkbD7tf+ZVlyhmM5HpTNf2HFerb0xwI1M8EE4esJugzk48oz
T3oOmu+i/hp59cpuS8ZD96c7Ho39aKSN49XLWqGMGsbZ2h3lmRTU0sD+sEWl2vJn
ODtB33We5Q2/TtHwY9dj
=wIBl
-----END PGP SIGNATURE-----

--nFreZHaLTZJo0R7j--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019