public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* gettext - acl tests - cygwin specific code path
@ 2018-08-21 20:53 cyg Simple
  2018-08-21 23:57 ` cyg Simple
  2018-08-22 10:24 ` Corinna Vinschen
  0 siblings, 2 replies; 11+ messages in thread
From: cyg Simple @ 2018-08-21 20:53 UTC (permalink / raw)
  To: cygwin

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.

<STC>
$ 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:---
</STC>

gettext loops through a number of modes and fortunately one of those had
an owner and other without the group. Anytime the other is set without
the owner or group having permission we get an ACL for the user which is
wrong.  A `setfacl -b /tmp/tmpfile0` doesn't correct the information
from getfacl.

-- 
cyg Simple

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2018-08-23  8:14 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-21 20:53 gettext - acl tests - cygwin specific code path cyg Simple
2018-08-21 23:57 ` cyg Simple
2018-08-22  8:13   ` Marco Atzeri
2018-08-22  8:16   ` Andrey Repin
2018-08-22 10:19     ` cyg Simple
2018-08-22 13:37       ` Corinna Vinschen
2018-08-22 22:36         ` cyg Simple
2018-08-22 13:49       ` Andrey Repin
2018-08-22 10:24 ` Corinna Vinschen
2018-08-23  2:54   ` cyg Simple
2018-08-23 23:13     ` Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).