delorie.com/archives/browse.cgi | search |
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=tsROKh6CPbfI/sgqbC3K4etjKNhgRe5BPQDqPmNExdCbFU4+Ma6jW | |
uhUBrEYaWdzc0B2MwgnXE/X1XLufHuyoc1/byYp8itdI1Vv+Dx1IjHF5+PF/Sp4k | |
JJcRNv78cH0bLTd+T0p3I5AOptuvyg1tKSm73h5SgJiOneRirs3Uu0= | |
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=0BBl2oRwqadTIB8rpc2rFqh8CQU=; b=Fs4trxvuBp7sBlfx6/neoKCyOGwK | |
/XW1JLSLF4QCFNY/MRvbOv+ts+X3QhAlkbM7HN+o29Mue79IFlphSidJ8K8IoxN5 | |
04wp/ZHBlYRUBTct/FTXLNLOsZQlOfVbA48i4Q29NO0WWnedTViVdRGW263ToO/m | |
O8mngTpzK6H/HZ8= | |
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-Spam-SWARE-Status: | No, score=-101.2 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy=accounts, reserved |
X-HELO: | mout.kundenserver.de |
Date: | Thu, 23 Aug 2018 10:11:35 +0200 |
From: | Corinna Vinschen <corinna-cygwin AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: incompat in cygwin choice of using '+' as domain and user separator. |
Message-ID: | <20180823081135.GN3348@calimero.vinschen.de> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <5B7DE56E DOT 6060109 AT tlinx DOT org> |
MIME-Version: | 1.0 |
In-Reply-To: | <5B7DE56E.6060109@tlinx.org> |
User-Agent: | Mutt/1.9.2 (2017-12-15) |
--pZs/OQEoSSbxGlYw Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Aug 22 15:36, L A Walsh wrote: > Ran in to this trying to use tar to store acls and xattrs: >=20 > > tar caf lawbins.tar scripts scripts- bin > tar: miner.js: Warning: Cannot acl_to_text: Invalid argument > tar: run-crons.sys: Warning: Cannot acl_to_text: Invalid argument > tar: smallprof.out: Warning: Cannot acl_to_text: Invalid argument > tar: tmon.out: Warning: Cannot acl_to_text: Invalid argument > tar: ubytes_to_utf8.new: Warning: Cannot acl_to_text: Invalid argument >=20 > examining one of these: >=20 > > find bin -name tmon.out > bin/tmon.out >=20 > > lsacl bin/tmon.out > [u::rwx,g::rwx,o:r-x,u:Unknown+User:rwx,g:Unknown+Group:rwx,g:Administrat= ors:rwx,g:Bliss\Domain > Admins:rwx,m:rwx/] bin/tmon.out lsacl? I don't know this tool. The fact that it prints the unknown accounts with '+' and the known account with '\' is weird. This shouldn't happen. It should print all accounts with a '+'. Please use `getfacl' to examine the ACLs. >=20 > I tried tar in an existing dir: >=20 > > mkdir test > > tar caf test.tar test > > ll test > total 0 > > cd test > > tar xaf ../test.tar > > ll > total 0 > drwxrwxr-x+ 1 0 Aug 22 15:26 test/ > > lsacl test > [u::rwx,g::rwx,g:Bliss\lawgroup:rwx,g:Bliss\Domain Admins:rwx,m:rwx,o:r-x/ > u::rwx,g::rwx,g:Bliss\lawgroup:rwx,g:Bliss\Domain Admins:rwx,m:rwx,o:r-x] > test >=20 > With the above and only standard separator chars, no problem >=20 > I'm guessing, but '+' is a reserved char that's not permitted in > acl_to_text... No, that's a wrong assumption. Think about it. The ACL given to acl_to_text is the binary form, so it doesn't contain user or group names, only uids and gids. The usernames are only generated in the output. EINVAL from acl_to_text means the incoming acl is invalid. Either it's so broken that acl_to_text crashes, or it'sa NULL pointer, or it has less then MIN_ACL_ENTRIES (3) entry, or it has more than MAX_ACL_ENTRIES (2730) entries, or it doesn't follow the required rules for POSIX ACLs. I assume the latter is the case here. *Why* this occurs, I can't tell. I'd need a simple, reproducible testcase for that. Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --pZs/OQEoSSbxGlYw Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlt+bDcACgkQ9TYGna5E T6AGEBAAi/WKmOlUNxFLMu5bCDknA/FEVgnAf37iULOVyHVpZ8Qj0dwKtZT+p6LV sJXI3YTP9wwScMLJnISQpb79KfGg2C8BwvKqC7o/el42qYCysUUnMZGzHRyVtyJy 6fxsOYyYmafRBCBy+4ogyHQQsxVILaKc4CIbg1OcdrHZ4046GnFzY75f9bcUJLtf j45UC+kb03EoKm5hxTa5WToY+qwZxaSS5/5O8s2WXC0nhLS3luK5TnXyCpksrccI ir/qrNbtxurzMBzATKtFEz5WcGJygFXcTNRqslmjQD0NbiOlCXc/88lCBEKmN68d I7DoamEoiVNT10eXjPbX4I5Ze+R3nwW2ExSh3gj5n0fudX08nGLGHym2kVo09Scj m24QKQn6SglQD5Pa42SQ3rCT1LFloOlfXqq1vyHhz97EXeXW4DrW8qu16svS19CS uSal4btf2Fq7A9sCIGzIZXmUo32jE5w4kVOXiFriKflsrrprZUf8oQC/8qXryvFC B0kR6ZfMNjcyMWXuJWSZtsHgOXErow8tlUSlCEg/JJ5pPCM8786TzZEII9D8LNlR PZ98oCWp2FSt0QPsGG90+W2SBW4Hj9+ibESDCMDP750cDBrLxywBmgc7k19uhzoT vWqDlaA+lEhR0+HOzeXFDyghvONf73rlQdVUjk4BaPu7n6jBv0U= =11DJ -----END PGP SIGNATURE----- --pZs/OQEoSSbxGlYw--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |