delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/05/28/11:29:39

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B2BF93896C16
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1590679734;
bh=2EDOEKlDShd14yOTMPIEdsYvq9aZEBRBLAQRiWHwIdc=;
h=Subject:To:References:Date:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=u1pGAMXFbRRN7mPW+XwdshodFmCBlraI1SQ/HhmbtYrVmyb4ofsODDhkNBBkZ/rZK
kp+z9g1+zGBDzp2HuITJFveIkuJb7nMomyTy7uQGGctErfcnenqbIJofTntcyi7v3a
tCVENCagAv2X8sZ5JkMx8/X2rRF0RKJZy/d+DgcI=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 8D667386F45A
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
b=eH5tKYt+5TMz12bnSCdr1vDYdCim31khvCV/LszzmY7Gdu8fxoDOAY8Lx3FPiTsSwKRKnD74v5Sx8u5xYMvZM81CdQMfi/+ivadikXnT6dQHK8n5kpCvVzFthVeucwdkPVJOsEhNbN3gB/Qv7LM6tAGl0R3HdodnaeKDzMD4OceSNG/czgzjr6E++k3PpkjfHPKvZdP6CnZn9x7P+iR+sJPNapkiOa4sntlXrkxKEsok/r3aVA6m8GXtX1lYH2s+hbrxpMD9eamVBR4f6sg1sxXGdWu9uoPbu3JNzCW/HOhcyfY7ObtUDblaHIJlSm9KO1L0CwbtKZ0QxH+WTSBt/A==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;
s=arcselector9901;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
bh=YmdsJA9a9eGusOwCzOw+Zevn//uSQC/4zcDgb3qzgNU=;
b=S8LCvY7gYxAgs8HZmTJQ+q3USAZsdUHAMflMJ1QsJroyR50367Olwb/bHzdT+aMLITULHF7ACiG4J+nLaZjrXzyWZfMxs0JTstLtf4JLUxOEO9MHJalBM1vdMflHss0RRr+xOOMBbeFY0GrHKDCFzGk3PTzBxlanaa0bZgZ7NmmLFxUcfYaEkBzr6vN5Z0mHtlwK/y6Q4/cGgZVlgRvT9YNuHau4snsZLlnYF/DRSCB03thfvIiYHLkV8OX+J21Nt3jGoh2EoKYyWpuDY2zD3AsEQtETXRrxD+DVD8KGdqSa28i47WhD/rq1he/QtLux/j8JAujBxc6VnCbZV/z/xQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass
smtp.mailfrom=cornell.edu; dmarc=pass action=none header.from=cornell.edu;
dkim=pass header.d=cornell.edu; arc=none
Subject: Re: Seems like a bug with mkfifo -m
To: cygwin AT cygwin DOT com
References: <1562427636 DOT 19173685 DOT 1590653523730 DOT JavaMail DOT zimbra AT office DOT targem DOT ru>
<c117921e-388a-2ac2-dd95-3d66a6dae5be AT cornell DOT edu>
<20200528145233 DOT GP6801 AT calimero DOT vinschen DOT de>
Message-ID: <1dd458ed-451b-9792-23db-a80374500371@cornell.edu>
Date: Thu, 28 May 2020 11:28:48 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101
Thunderbird/68.8.1
In-Reply-To: <20200528145233.GP6801@calimero.vinschen.de>
X-ClientProxiedBy: MN2PR10CA0031.namprd10.prod.outlook.com
(2603:10b6:208:120::44) To DM6PR04MB6075.namprd04.prod.outlook.com
(2603:10b6:5:127::31)
MIME-Version: 1.0
X-MS-Exchange-MessageSentRepresentingType: 1
X-Originating-IP: [68.175.129.7]
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: dfd69bba-f4d6-48d6-2f7f-08d8031bd287
X-MS-TrafficTypeDiagnostic: DM6PR04MB4972:
X-Microsoft-Antispam-PRVS: <DM6PR04MB497222041F1E722793B228EAD88E0 AT DM6PR04MB4972 DOT namprd04 DOT prod DOT outlook DOT com>
X-MS-Oob-TLC-OOBClassifiers: OLM:669;
X-Forefront-PRVS: 0417A3FFD2
X-MS-Exchange-SenderADCheck: 1
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: PBWHvd9rrCk3ulPkwL0yCcjHFPrE9Uw1BcPAoywJ1jJsApOnubWb0nz4YFyCIn8PeKjzmnscM+juXrllhcTxJoVsYnBndVvsnqs9UcHF+ElipyEhCpzeQQ8X/10Otowa69i2Cy/50GcBbaD3Z4Bo/CkwNud02sqvBMjgZ5fX8EtGfwVGsLdKimy3mhE/ZswSqcO1+/GlXd4SQjRuda/CfdFA12fsNL7CBCNFzs4JdtT6yVbEfTCTk5dtNUTo4IMFkQ7HziPX2lakNt0vEHwz92qwOnO02FBaderXysZMhgNZ0Z09aWBDFRvcupNbZWu72x1LFsBMTs/otu1hp1kGT5uvFjoWDFGBIxTUEulNsC2FmiQRUUkWU/n3bfjsmpqH5ux6zqbuHUdjgN2AaUEylCHLo7XVz5oLkas1hhzTSvU=
X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;
IPV:NLI; SFV:NSPM; H:DM6PR04MB6075.namprd04.prod.outlook.com; PTR:; CAT:NONE;
SFTY:;
SFS:(4636009)(136003)(376002)(396003)(346002)(366004)(39860400002)(66556008)(2906002)(786003)(316002)(53546011)(478600001)(6916009)(16576012)(31686004)(8676002)(75432002)(5660300002)(26005)(66476007)(8936002)(52116002)(36756003)(66946007)(2616005)(86362001)(31696002)(16526019)(956004)(6486002)(83380400001)(186003)(43740500002)(460985005);
DIR:OUT; SFP:1102;
X-MS-Exchange-AntiSpam-MessageData: V9dDYnawKAleiTZIBHXTjuPCvIeQzU3rMBIRda74VNBeq84jemJ0p0rKbsttnkNItGzGyMhIy8h/n0BihJeWyskNga6H6SHyRDA13/RDAWReI/P2/5M9g6CCNu9alSXtVgOkmZzIOiz1WTN6Zn+5vqC6FD3A7nPEwlWq0dJegIEnmErfhQZWvT/NUVKWtS8DJcNG51So5HKjo33A9NluEandNajj2T6jgEICTUqkdFmL5qjxua6lrWijEOjNzINEbwVFSwVTTAm7yPhaM81bpof2Z24rKAq63twZxbASttL4GPdHYmbV5FhqKKS+lqCKlaFbDfI9QDeD9sBWsqcfXVpH0HJtcPd5G8vWo4QcSXgFklhzi4EdsNHrrrrDZyn7j3YgOwPMb/YdTezBIfR0PbuCkeLjyU7B79SQ9K8ZiY4n41CdQOgjp1UFyO/IR4Aw4Jo3d9H6IQndveYTNzf+mwdqTod/T7UGFlVnb4x17t4=
X-OriginatorOrg: cornell.edu
X-MS-Exchange-CrossTenant-Network-Message-Id: dfd69bba-f4d6-48d6-2f7f-08d8031bd287
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 May 2020 15:28:50.5069 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: 5d7e4366-1b9b-45cf-8e79-b14b27df46e1
X-MS-Exchange-CrossTenant-MailboxType: HOSTED
X-MS-Exchange-CrossTenant-UserPrincipalName: 7je4wxlE1DpJflZsxcS87fnza1MGk5iNl//YYW9BE/IX2m+lFLLye1VinzoZnA31K4wrGKCv2YmeB3vgiMnRpw==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR04MB4972
X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00, BODY_8BITS,
DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, MSGID_FROM_MTA_HEADER,
RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS,
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
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <http://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <http://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Ken Brown via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Ken Brown <kbrown AT cornell DOT edu>
Errors-To: cygwin-bounces AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 04SFTLMO007388

On 5/28/2020 10:52 AM, Corinna Vinschen wrote:
> 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 <corinna AT vinschen DOT de>
>> 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.

I remember we had an IRC discussion about it, but I can't remember what the 
issue was.  I'll look a little more closely before reverting.

Ken
--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019