From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from omta001.cacentral1.a.cloudfilter.net (omta001.cacentral1.a.cloudfilter.net [3.97.99.32]) by sourceware.org (Postfix) with ESMTPS id 746BA3858C53 for ; Sat, 26 Aug 2023 19:16:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 746BA3858C53 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=Shaw.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=shaw.ca Received: from shw-obgw-4004a.ext.cloudfilter.net ([10.228.9.227]) by cmsmtp with ESMTP id ZtR4qGI1ILAoIZylkq7YZf; Sat, 26 Aug 2023 19:16:24 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=shaw.ca; s=s20180605; t=1693077384; bh=X0J+KvbuKVvIcXnyKkqEjvbIVKOfVXt/G1Z1YpYLyXU=; h=Date:Reply-To:Subject:To:Cc:References:From:In-Reply-To; b=WcenQliHBdyGn69GmsSa8NSVOkoj5Li1iJx7AFSFrHvlQEKnrQY6XPAyJq5KAGi/E x1UoXmKAhOV6a2M182gjXZToVtDn16hElfVjvqDgha8lbcyd81mY9qWeU++fCZHm7c dCxM+uooW1vTzxpv7gdZortMIukXEqhMDUySfNSgZdNggqU7jhF6KNSEWI8mlvPBn6 5zOGJn5N5hfe+B+HYaWk2mEk1Uk8WtNMEM/nHvAEgMuJx7fBxJuSZvm5RVSuNhbzm6 lJ/1eG3UYiduq28vM9SDWBjBFVHQz049j+0seUAn/BAHYS7WgfC18TaCEWSkw2m6sQ GAWW9BbIGjmMg== Received: from [10.0.0.5] ([184.64.102.149]) by cmsmtp with ESMTP id Zylkq6bct3fOSZylkqLnTl; Sat, 26 Aug 2023 19:16:24 +0000 X-Authority-Analysis: v=2.4 cv=J8G5USrS c=1 sm=1 tr=0 ts=64ea4f88 a=DxHlV3/gbUaP7LOF0QAmaA==:117 a=DxHlV3/gbUaP7LOF0QAmaA==:17 a=Wz_0O5XQ8js75uO9:21 a=IkcTkHD0fZMA:10 a=w_pzkKWiAAAA:8 a=GcyzOjIWAAAA:8 a=xNf9USuDAAAA:8 a=x2st7gq1yHNOgazYbzYA:9 a=QEXdDO2ut3YA:10 a=1Prfya7pQxoA:10 a=sRI3_1zDfAgwuvI8zelB:22 a=hQL3dl6oAZ8NdCsdz28n:22 a=SEwjQc04WA-l_NiBhQ7s:22 a=0Vf9Ojdfx986H2HLSRfn:22 Message-ID: Date: Sat, 26 Aug 2023 13:16:23 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.14.0 Reply-To: cygwin@cygwin.com Subject: Re: How to fix |mkfifo()| failure if |pathname| is on NFS ? / was: Re: [EXTERNAL] Re: mkfifo: cannot set permissions of 'x.fifo': Not a directory Content-Language: en-CA To: cygwin@cygwin.com Cc: Martin Wege References: From: Brian Inglis Organization: Inglis In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4xfOyKFWJr0AiFDiepa6Gp8/SCxh7/4BBC5Ti+59zlqfCdB7THRcEPulcepgoJanCXxjvdWnK7yNk19hcRo8w5SIeIKLxZyouNx7y4MjnevfytJZ+1uej2 XMO29S3RIBHP4ZpOzO10oZqHiPO0GJJIZtF8Re3FkpmQFPVccoYBz0JEADwzrcvaj531oSqBJlga7mCdReIDFXkshVynzkt/J14jkRJz5rVUx5Szg137fYGZ X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,KAM_SHORT,NICE_REPLY_A,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 2023-08-26 11:40, Martin Wege via Cygwin wrote: > On Sat, Aug 26, 2023 at 4:16 PM Corinna Vinschen via Cygwin > wrote: >> >> On Aug 26 13:26, Cedric Blancher via Cygwin wrote: >>> On Fri, 25 Aug 2023 at 14:26, Corinna Vinschen via Cygwin >>> wrote: >>>> >>>> On Aug 25 14:18, Corinna Vinschen via Cygwin wrote: >>>>> On Aug 23 01:05, Roland Mainz via Cygwin wrote: >>>>>> 2. Check whether the filesystem for the fifos path is NFS >>>>>> (cgywin.dll's |fs.fs_is_nfs()|), and then just refuse |mkfifo()| with >>>>>> |ENOSYS| (not implemented) >>>>> >>>>> I like the idea. >>>> >>>> EPERM, btw. See https://man7.org/linux/man-pages/man2/mknod.2.html >>>> >>> >>> I am vehemently opposed to that idea. That will IMHO not only be the >>> wrong solution, it will break actual things like autoconf&friends on >>> NFS - they create fifos for testing, but do not use them. If you just >>> make this return EPERM, then you break stuff we have to rely on. >> >> https://cygwin.com/acronyms/#STC, please.# > > Real world failure for Cygwin on NFS: > > wget 'http://deb.debian.org/debian/pool/main/k/ksh93u+m/ksh93u+m_1.0.4.orig.tar.gz > cd ksh-1.0.4 > $PWD/bin/package make > > This fails with Cygwin 3.4.8-1: > > cat buildlog.log > package: update > /cygdrive/z/arbeitdfn/windows_ksh/build_nfsv3/ksh-1.0.4/bin/execrate > package: initialize the > /cygdrive/z/arbeitdfn/windows_ksh/build_nfsv3/ksh-1.0.4/arch/cygwin.i386-64 > view > package: update > /cygdrive/z/arbeitdfn/windows_ksh/build_nfsv3/ksh-1.0.4/arch/cygwin.i386-64/lib/probe/C/make/probe > package: update > /cygdrive/z/arbeitdfn/windows_ksh/build_nfsv3/ksh-1.0.4/arch/cygwin.i386-64/bin/mamake > package: make with mamake > package: make output captured in > /cygdrive/z/arbeitdfn/windows_ksh/build_nfsv3/ksh-1.0.4/arch/cygwin.i386-64/lib/package/gen/make.out > mkfifo: cannot set permissions of > '/cygdrive/z/arbeitdfn/windows_ksh/build_nfsv3/ksh-1.0.4/arch/cygwin.i386-64/lib/package/gen/make.out.fifo': > No such file or directory > package: make done at Fri Aug 26 19:24:26 CEST 2023 in > /cygdrive/z/arbeitdfn/windows_ksh/build_nfsv3/ksh-1.0.4/arch/cygwin.i386-64 > > If you need more examples just let me now, we have MUCH more of that... No - the DLL developers need fewer examples, just *ONE* Simple Test Case, boiled down to the essentials, with notes on preconditions, if you can not recreate the required conditions in a program or script. Alternatively, Cygwin strace output with notes from a failing program, or a gdb script and log of the failing code with enough calling context and notes. Please read the problem reporting guidelines linked at the bottom of all posts and follow them. -- Take care. Thanks, Brian Inglis Calgary, Alberta, Canada La perfection est atteinte Perfection is achieved non pas lorsqu'il n'y a plus rien à ajouter not when there is no more to add mais lorsqu'il n'y a plus rien à retirer but when there is no more to cut -- Antoine de Saint-Exupéry