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

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 89B9A388B03B
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1590671814;
bh=XlshlNe1GJQiuvOfqdECo3TRc0Q4/GpDcytQGPzJXTY=;
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=qi1WhdxzdRCAUWbBjzAoGpkC4UHvA9BvWBIQhf+eEjKqIa1uljDcXev1nK2CLHRWR
R5Jrqy3Uls2xfCOyhiDJyGeTNMppEJlRLqIDI/+4s8Kx/V3PWLn4jN+iOrtu5B1XNE
bvLiRQ+eVe866d9YkkfeXgSrwqi4B0jzIO2VHR/4=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 01F8D3870842
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
b=FW0X3QA9+VaW612D0u50/tZYHN26X8HUgSmiJ3WMZqQeyAyM28sZuBKS+qGComHYoN/ZJiSsYXld1nU3zyADs9dmCfUY7loQvJqXl9eVeFdXTNKaIDjCDQ1s02X+deK8mV+CA1EvArpaR/Oc9SAWp/t8XJTuLtWaCUxgoQp1hnp4oWp3T7UKbQxAU7aA3sdiv/z7UG9NDB1saoDAlxNP88rltgBvgqRjT+X+v8GEhbJ94j3VCfW/NwDBLwVsr9DLVjWdc9qBRhuzRLIZuXerNm0XP0R3q7clyyLCT3OhuboXOZazhWdCGYBePRGKy5G7tRxGbBvMak2RLlOTTXb0TA==
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=UxOZs+53hOc4Y4NXDtyF0O9FCd9t6HMJ719D98Bmmp0=;
b=YAXqcpqOEqbC6NoDzBSryXuNqmy2+WOEx7kJWMToMrx2QJVcT/4nnRHrDkH/H7cdS2BjXfRPpNOzhoQEYc37MSgZIXKlFn4x4CljK7MvsTXR4nP1Q2GoSzWnQC9qN3P/RpevAPosWZi7cTthrP7zCOhePR5thMyG3LMCmhdJYXidLuh/eWTHpyJemDoPZsU/RQNq29msABqozIollLb3jpeLM3YtETkuYvunq7DR7caaOtJ32GSRD6ddcJj2ZQl0GoVZVgkX6Yg99XINojGxN7McY7CIWAltd+YUy3vlMT9G+l05AmG4BiH8gA22kiF23VbfE3DAzz4CME6hzKmOiA==
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>
Message-ID: <c117921e-388a-2ac2-dd95-3d66a6dae5be@cornell.edu>
Date: Thu, 28 May 2020 09:16:47 -0400
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101
Thunderbird/68.8.1
In-Reply-To: <1562427636.19173685.1590653523730.JavaMail.zimbra@office.targem.ru>
X-ClientProxiedBy: BL0PR0102CA0064.prod.exchangelabs.com
(2603:10b6:208:25::41) 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: e5badd2a-7768-4204-6694-08d80309614e
X-MS-TrafficTypeDiagnostic: DM6PR04MB6810:
X-Microsoft-Antispam-PRVS: <DM6PR04MB6810BCBF2DD2A5812E7F1687D88E0 AT DM6PR04MB6810 DOT namprd04 DOT prod DOT outlook DOT com>
X-MS-Oob-TLC-OOBClassifiers: OLM:425;
X-Forefront-PRVS: 0417A3FFD2
X-MS-Exchange-SenderADCheck: 1
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: IqfCgS/cI0R9fnD7ETnvQvvWNr4TNY4ss7yS8sdtlIFhIp6vySpfmmPUfMBtcA0kdpBviqX+ewUoAHjJ9tXbcey7U67Id2GNjG7luFLj71V+wexWCGWvee2zLAUjH2JaK2NBp3PBcjFbdWGCnR2jsKqmccAS/VBNuxbIAUQRf3UXKYM2kMBrevwVUX1X0ZF3X4mr60R9c/tI9khGQtHNpfj0T85qekPItONc0gjt7nqPSj3QA4YMOgTckLNu+IyaOMJz8RxnBmG+fwL3vbTZtjhmZ48D+97cjjGeGvK/Q+BkRheYX8L2G+NqwOkU4YAIlkH6aL2ExuzDina+qls5S/NxV1d/ygw0L6dBvdbkCM8zPvGxiuZlu/mlvA4tGRC++nPAeQ7ilBKHIBqLze+OhHGWqMSh39qVvpAG6BTxPIs=
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)(366004)(376002)(396003)(346002)(39860400002)(136003)(66946007)(786003)(2616005)(956004)(2906002)(16576012)(6486002)(5660300002)(316002)(186003)(83380400001)(36756003)(66556008)(66476007)(16526019)(52116002)(31686004)(478600001)(31696002)(53546011)(6916009)(75432002)(26005)(86362001)(8676002)(8936002)(43740500002)(460985005);
DIR:OUT; SFP:1102;
X-MS-Exchange-AntiSpam-MessageData: tN7I4hgFOA7ZTRKinRPKeHkdbjZw7qqYFDWeqQZCksMj47PMDqdN10nvqINgL/cO+W5Z4mS0DD9TMexcVudSmhMHhm01HuE+eNYTwVRDdLHr+2QnaP0aO4uLGXl7pYY/r3XwFAzvBRJ3zvTfjh9V/OB+s+Aszv69cEv2Kj+lKYhQqc/WtqGWNxwJchjpN/6hzb8zlExAsq0numcO8Xdq8rg6d+LFOvnkGz1xAphTlKARRYn/4E0jdzaQlvErKr93IXinToSOIFkncqsktFHGekrE3wXq6Anfa7LPYWkB6gySU7J2R+eHM33jQENScxQgdK3tLdCbDI/NyS7C2OnzPXZ9F8iClnW7jEcPXLqnehpOfCpL8QZ7cIAwmay2gqFyA1hHBnQSi7i4BM+bTA1kDSy9NFEun6+PWPpQvveo15zVbPxQJG8oGEWznt0YoRBbjJy3HEY7jl6C6tKKeLjMOZuajAk2bbL7tqo51/02Wr0=
X-OriginatorOrg: cornell.edu
X-MS-Exchange-CrossTenant-Network-Message-Id: e5badd2a-7768-4204-6694-08d80309614e
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 May 2020 13:16:49.6651 (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: tr3lsBSzS1QlGoL/z5co67c2KRwlaQF7wGuNRWAII50Ptj7AMwW8/iqi6HM0WgV8Xy30ggesryjiG0mhgmF9kw==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR04MB6810
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 04SDHKUA030192

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.

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