From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12112 invoked by alias); 23 Aug 2018 08:11:41 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 12093 invoked by uid 89); 23 Aug 2018 08:11:40 -0000 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 Received: from mout.kundenserver.de (HELO mout.kundenserver.de) (212.227.126.134) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 23 Aug 2018 08:11:38 +0000 Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue002 [212.227.15.167]) with ESMTPSA (Nemesis) id 0LZZIC-1gFwRQ1GpQ-00lXBN for ; Thu, 23 Aug 2018 10:11:36 +0200 Received: by calimero.vinschen.de (Postfix, from userid 500) id 7529CA807B9; Thu, 23 Aug 2018 10:11:35 +0200 (CEST) Date: Thu, 23 Aug 2018 15:59:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: incompat in cygwin choice of using '+' as domain and user separator. Message-ID: <20180823081135.GN3348@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <5B7DE56E.6060109@tlinx.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="pZs/OQEoSSbxGlYw" Content-Disposition: inline In-Reply-To: <5B7DE56E.6060109@tlinx.org> User-Agent: Mutt/1.9.2 (2017-12-15) X-SW-Source: 2018-08/txt/msg00301.txt.bz2 --pZs/OQEoSSbxGlYw Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 2279 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" Content-length: 833 -----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--