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:to:from:subject:message-id:date:mime-version :content-type:content-transfer-encoding; q=dns; s=default; b=Tu3 YFXEATdl9C+l4Zl3ZB3mAuYwB1M2LErGvd/DqrgwbuX3bq2B46PcgA+yzdC6TL0+ c7VddXE3kG87q+dmvKfgHnJouXJ4WRMtY85v+5ZCyo9QearWsFgAu7eFZrypdCWK 95aPWMQTuO3eoOXgZTmfl8GAkkBo7W7DaAw/8TEQ= 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:to:from:subject:message-id:date:mime-version :content-type:content-transfer-encoding; s=default; bh=8wc3wE9m2 gSkOmvSOiu/FebuG3M=; b=VAQUpBqMwZClfG+BkmejCTypCEJCEG1IUPZHUhsZ2 9gPgC05O5f7lnMBQrq1bHWVjelwP8g+GUA46xFYrNIOhRNGTg6/HjrKzOzN39vmB Y5m0Z1ps0szVYIuVUXyGjeWC6rScWeag7igETaN5Qzne9ebPiUxb4XmqFyCuxfUt TA= 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=-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 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== To: "cygwin AT cygwin DOT 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 11:52:22 -0400 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 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