From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.17.10]) by sourceware.org (Postfix) with ESMTPS id 70D763851C21 for ; Thu, 28 May 2020 14:52:38 +0000 (GMT) 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@cygwin.com Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.183]) with ESMTPSA (Nemesis) id 1M4JiJ-1je2ue43Cj-000JzM; Thu, 28 May 2020 16:52:34 +0200 Received: by calimero.vinschen.de (Postfix, from userid 500) id 1B348A81009; Thu, 28 May 2020 16:52:33 +0200 (CEST) Date: Thu, 28 May 2020 16:52:33 +0200 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: Seems like a bug with mkfifo -m Message-ID: <20200528145233.GP6801@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com, Ken Brown References: <1562427636.19173685.1590653523730.JavaMail.zimbra@office.targem.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Provags-ID: V03:K1:uYT68nXQK2gfWJoRFcWSxoDcZ0j88ZXQVmtpUYCs7Lk2C5sNU8y YgQUTvBnWTyvey6yUDGkUWYxcChE8v5N0iaMHDt5Cbq3gQuLxy1pqVSoFAnWUXgeBK5CQ4v yq5UGbuAmAmSn1NRaHe4lcDcIsm39ZflkbF1OqR7VAh3V9TFyeLNru3vzVD0UhUn5/7C3/H ZWq6ggEgosGhtvr0kiEWQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:g7oFSd/w1kI=:m61Qx0n2fSL4x/2/sPiLR+ AcN5RL/UD13YWgJulxoIXzGI3RyTIf/5LbDza5FxMbZQQ6ZwT0fnyAqFA73o6PuOXg4aNEIPp /GR51u5A71hIxH9IX3ZjzcFYeYEoqAv83EQS11afq3c2Tpgla4ayh/Vrs+WoSScsnINkOYQ5t A7lbqs/429oo3VC0ZcTGdUsNSDMgChqERqJMKeX3lzv9dXt+GxSPFW0gu12wvxtzUbpHTXdlM VAu3vd0nXpb4hsOLg5ld9JOXeIm2sDmVFgxLrd1zc7wcfdGhPQNSwxAqmePdoZ1sGBWm1hXMi 8f2d1av8nI9gUTboJtBNXnDOb8G/egWEYaFonVEypCF9A1H1B9dynHKDnUzL/uLBCftfOjHgn zA5C02Let7TiuLlK22LREfbPmqYzKd/6au/WXcwc1Kzt6/3DtA+8JyM5OoSj3CoJfgKrclNqe 6RTHQy3bwQJm9x+/auwhVSn4ef8bKWM27OFtqOeEzkkcbqfTP8yU9XYZq/2OQoRXcrvr2yafj U9eBVD7c/NxnZ22JIAYmQqZ/7Kdf7IxBPZvsfTUz+tJ0INKoKon7GuXMUXmaXPWjSwubyX9b7 sTj2I7JQcdRNdMbL9Vk4Z5ac52vffQYOKWYfHbA/MYMrzg8Zp4giYJg9aSVDwIPQNG6xO+CZe WZqfM4QmMBQSgoMwnlkHSRmsAvW/KhfbBAKaic2jFXFEh6tTyO/ifEJFGPLgx1HGwO3GxgMfq hVqipS2dSyrBeqHmSTf9j+mk2RVuOSqFhwHDMN/1dNh4oLbUC2uwIIZAoLG4W/sRnd/dKzcCD xvDq1bMLVvZ8TBRD+P0L5gDTsjuDSmoMGqydr7GUvPzx8CtI8KcoeDZjl9eEol5fCyaBjLv X-Spam-Status: No, score=-97.5 required=5.0 tests=BAYES_00, BODY_8BITS, GOOD_FROM_CORINNA_CYGWIN, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, 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@cygwin.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: , X-List-Received-Date: Thu, 28 May 2020 14:52:40 -0000 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