X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 588693972C2C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1590677561; bh=dqnP6nPoNBwiS6mWffu88xSNxQlm67BBJRlskl2tjmc=; h=Date:From:To:Subject:References:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: Reply-To:From; b=nLGolbVjj9sYwyW/1s0CTFPNGKWVwx61cBqtfYSiKqGv3dI+cfUQBk+lZqDFXenhS 0O5YhGEWZtk2hLY2R1E5RJYMkZ+YXIRgHdQiaquae8Txx+X+3eQ1SJOOOyoejuSzmu BiR9eB4DSe94Ca4wm1jq1Y6n/YY/9hcTtjF4T2Rk= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 70D763851C21 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=cygwin.com Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=corinna-cygwin AT cygwin DOT com Date: Thu, 28 May 2020 16:52:33 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: Seems like a bug with mkfifo -m Message-ID: <20200528145233.GP6801@calimero.vinschen.de> Mail-Followup-To: cygwin AT cygwin DOT com, Ken Brown References: <1562427636 DOT 19173685 DOT 1590653523730 DOT JavaMail DOT zimbra AT office DOT targem DOT ru> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-Provags-ID: V03:K1:uYT68nXQK2gfWJoRFcWSxoDcZ0j88ZXQVmtpUYCs7Lk2C5sNU8y YgQUTvBnWTyvey6yUDGkUWYxcChE8v5N0iaMHDt5Cbq3gQuLxy1pqVSoFAnWUXgeBK5CQ4v yq5UGbuAmAmSn1NRaHe4lcDcIsm39ZflkbF1OqR7VAh3V9TFyeLNru3vzVD0UhUn5/7C3/H ZWq6ggEgosGhtvr0kiEWQ== X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, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NEUTRAL, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: cygwin AT cygwin DOT com Content-Type: text/plain; charset="utf-8" Errors-To: cygwin-bounces AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 04SEr9Aq004845 On May 28 09:16, Ken Brown via Cygwin wrote: > On 5/28/2020 4:12 AM, Дмитрий Есарев via Cygwin wrote: > > Hi, all > > > > When i ran cygwin 2.x, i used mkfifo -m 0600 file to create a named pipe with no user and group permissions. > > > > in the latest cygwin the above command creates device with 0644 permissions. And i cant drop it to 0600: > > > > cygcheck.exe -V > > cygcheck (cygwin) 3.1.4 > > > > $ umask 0077 > > $ touch somefile; ls -l somefile > > -rw------- 1 admin absent 0 may 26 18:15 somefile > > > > $ mkfifo -m 0600 somefifo; ls -l somefifo > > prw-r--r-- 1 admin absent 0 may 26 18:16 somefifo > > > > $ chmod 600 somefifo; ls -l somefifo > > prw-r--r-- 1 admin absent 0 may 26 18:16 somefifo > > > > > > > > In old-good cygwin 2.x the command works as expected: > > > > $ cygcheck.exe -V > > cygcheck (cygwin) 2.9.0 > > > > $ umask > > 0022 > > > > $ mkfifo -m 0600 somefifo; ls -l somefifo > > prw------- 1 builduser Domain Users 0 May 26 18:21 somefifo > > Thanks for the report. The problem isn't with mkfifo, it's with the > permission information reported by ls. I did a bisection of the Cygwin > development repo and found that the regression was introduced by the > following commit: > > commit f36262d56ac78f04de147746ce4a85c6155e4a23 > Author: Corinna Vinschen > Date: Wed Jan 29 15:14:05 2020 +0100 > > Cygwin: stat: fix st_mode of fifos > > I'll take a look if Corinna doesn't get to it first. Not sure what I was thinking at the time. I recall having observed something funny, but the patch was apparently wrong. Just revert it at your discretion, Ken. Corinna -- Corinna Vinschen Cygwin Maintainer -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple