From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 93507 invoked by alias); 21 Aug 2018 15:52:28 -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 93410 invoked by uid 89); 21 Aug 2018 15:52:28 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-6.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,GIT_PATCH_2,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=anytime, 600, HContent-Transfer-Encoding:8bit X-HELO: mail-it0-f45.google.com Received: from mail-it0-f45.google.com (HELO mail-it0-f45.google.com) (209.85.214.45) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 21 Aug 2018 15:52:26 +0000 Received: by mail-it0-f45.google.com with SMTP id p81-v6so4724560itp.1 for ; Tue, 21 Aug 2018 08:52:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:openpgp:autocrypt:message-id:date:user-agent :mime-version:content-language:content-transfer-encoding; bh=n88Rk46jOQ+3GC9eLSp1Hs9k89sMybhkUvVHjlZ++E0=; b=U11tmynGa7/mUMRuyjAzFycYfMkvjnLzez1kXOENjxxxsTMj/d+ZnPX5toX568FHAZ itS6rLZ/Dz6dNq6eKMQciWIAAOXXu4lHq05c2l/I25jIP10F8JQjjNpR0SuXgJUpi7aQ jQy3KgJa5kGBZEs5WZo2IoUglwSLZFJMMSa6H11EQ3NpuhfGoqH5mtqx2+Y5EXz57YYA ihA8IE+PG2zkXPaewGMm257+Crgl2pXodfUTP4e8QmDQks7YuPRqohnmxZADmcWDtQSp hrNZvtUCFS/Ur0+K9BHCJg8+8NgaIJ5cwPFtwWR9kYzV6L4SLm44wfzOSd5akzk6DZ5d bFFQ== Return-Path: Received: from [192.168.0.16] ([69.47.131.109]) by smtp.gmail.com with ESMTPSA id c76-v6sm1508802itd.9.2018.08.21.08.52.23 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 21 Aug 2018 08:52:24 -0700 (PDT) To: "cygwin@cygwin.com" From: cyg Simple Subject: gettext - acl tests - cygwin specific code path Openpgp: preference=signencrypt Message-ID: <20968a92-9900-5fd0-807c-29facf8b84de@gmail.com> Date: Tue, 21 Aug 2018 20:53:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2018-08/txt/msg00284.txt.bz2 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. $ 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:--- 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