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=QK2+E1BxS5Taq5pHfZw3u1+rEXtIbX3EMjRSnzP/zS2LNUJS33nCK 617h2s8FCl3gkIKvOvUvsfrttcsIpdog2mjlWr7hnGrop5gG5KN6OtMawcnjk9Ov rxKw4XDMdOSM3bdWMHw1WPv+E6Cx2W4Do8GiIWAW0PD5B1aGGjJMvw= 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=167fRtk5QX+NG3twUo9VONKmLuw=; b=Is03SAvhbT39Zr0Y4m5+nLqOHmPm q8I4tdJBH6FTnb5MokMFGpGC0jheR+dblTDWa+jKqNHOkw/g5fLqcWUMS7w2/O74 QHhGCKplJlEOkvCao2HvE+swXIxwvXXUnwDCuJaN8+I4frAoVs0udt6EMsgGGHTS SdrFL2/6wt5CbIY= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=-105.7 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 spammy=Everyone, sid, retry X-HELO: mout.kundenserver.de Date: Wed, 22 Aug 2018 10:13:08 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: gettext - acl tests - cygwin specific code path Message-ID: <20180822081308.GF3348@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <20968a92-9900-5fd0-807c-29facf8b84de AT gmail DOT com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="R3G7APHDIzY6R/pk" Content-Disposition: inline In-Reply-To: <20968a92-9900-5fd0-807c-29facf8b84de@gmail.com> User-Agent: Mutt/1.9.2 (2017-12-15) --R3G7APHDIzY6R/pk Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Aug 21 11:52, cyg Simple wrote: > I've been reviewing the testing of gettext and I have a failure for all > of the acl tests. I've found that a file without acl will obtain acl if > the mode is changed to 605. STC below. >=20 > > $ touch /tmp/tmpfile0 > $ ls -l /tmp/tmpfile0 > -rw-r--r-- 1 myUser myGroup 0 Aug 21 11:35 /tmp/tmpfile0 > $ getfacl /tmp/tmpfile0 > # file: /tmp/tmpfile0 > # owner: myUser > # group: myGroup > user::rw- > group::r-- > other:r-- > $ chmod 600 > $ ls -l /tmp/tmpfile0 > -rw------- 1 myUser myGroup 0 Aug 21 11:35 /tmp/tmpfile0 > $ getfacl /tmp/tmpfile0 > # file: /tmp/tmpfile0 > # owner: myUser > # group: myGroup > user::rw- > group::--- > other:--- > $ chmod 605 > $ ls -l /tmp/tmpfile0 > -rw----r-x+ 1 myUser myGroup 0 Aug 21 11:35 /tmp/tmpfile0 > $ getfacl /tmp/tmpfile0 > # file: /tmp/tmpfile0 > # owner: myUser > # group: myGroup > user::rw- > group::--- > other:r-x > user:myUser:--- > I just tried this and I can not reproduce the result. I used your above testcase with fixed chmod invocations. Eventually: [...] $ chmod 605 /tmp/tmpfile0 $ ls -l /tmp/tmpfile0 -rw----r-x 1 corinna vinschen 0 Aug 22 09:44 /tmp/tmpfile0 $ getfacl /tmp/tmpfile0 # file: /tmp/tmpfile0 # owner: corinna # group: vinschen user::rw- group::--- other::r-x Please retry all steps and add the cacls output after each getfacl output. Additionally it might be important to see the permissions of your /tmp dir (ls, getfacl and cacls). Mine has the typical 01777 perms. For testing I also created tmpfile0 in a directory with perms 0755, but the outcome was the same, as above. Here are my tmpfile0 perms in cacls output, btw., for comparison: $ cacls C:/cygwin64/tmp/tmpfile0 C:\cygwin64\tmp\tmpfile0 NULL SID:(DENY)(special access:) READ_CONTROL MYDOMAIN\corinna:(DENY)(special access:) FILE_EXECUTE MYDOMAIN\corinna:(special access:) STANDARD_RIGHTS_ALL DELETE READ_CONTROL WRITE_DAC WRITE_OWNER SYNCHRONIZE STANDARD_RIGHTS_REQUIRED FILE_GENERIC_READ FILE_GENERIC_WRITE FILE_READ_DATA FILE_WRITE_DATA FILE_APPEND_DATA FILE_READ_EA FILE_WRITE_EA FILE_READ_ATTRIBUTES FILE_WRITE_ATTRIBUTES MYDOMAIN\vinschen:(special access:) READ_CONTROL SYNCHRONIZE FILE_READ_ATTRIBUTES MYDOMAIN\vinschen:(DENY)(special access:) FILE_READ_DATA FILE_READ_EA FILE_EXECUTE Everyone:R Thanks, Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --R3G7APHDIzY6R/pk Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlt9GxQACgkQ9TYGna5E T6DaKQ/7B4wE33jvMIwXWRT8Vqf/v6v3R+IpOgOCK3ZCZmw62V7WlMQ0nVzXL2YN FB2+ZJRoSjJS+RGScQmo1aH5DZx5ZJbRs3aVhX6xsURx/1Q2lN2GEVpzUnsZJfrD CSuIZ+Oqm+al/2YUKxnapMHVLiFlUFvDUcc54IPUrxqcIYXV+qMdpd0BdMBU1Yw9 8W9GgrfLBBRQhoeqru7bhMjL3u5s8ec2xItdjf2TRLpTHZuwVZE1hQx06Ym0F+X8 VoPa6Qq6WD1YAteybPoyQBwhrJ3rTsgXbw5ZXTTet7f3EWdzAQFiuPFA0TSjlsz6 nnjZki4DxxOqB1A7ojOeaF9eoAQNdBJ91JyL1/75KGKPSm0wBsDREHY3ADjw0/4r WsaFYvluqwOjdcXcUzLnCUcrGCTy1b8M18m241B0vBpOeJcAtaYJEDvkm4GmnU7+ gHni/idIViSDkGf9sG5akt4kycSVsIDoE8FYrKUCHMUNI0xGsozYahd4tDBBjluX rk2UTQOwLf0f587NU6RJAuxLL2hjKgBU9aHznR1InW2FdoVe07JlMgQji9Gvs094 6WV0gnHbAQM8qlnIi9I49jLSPx/BiqabYnkJmdG14Jq1d+dNULrlunfEEn4mo2ak JtT5rg7fTpjFwvh/JgkD0r3tMxkFodN7uzgofgLiduFP3Ybh0fw= =ze8l -----END PGP SIGNATURE----- --R3G7APHDIzY6R/pk--