X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org ACD9A3856974
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1692619965;
	bh=4DEd7rNbIfru5lVS7CxunKyoEqUqqOQZGOlBMZQYfCA=;
	h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe:
	 List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
	 From;
	b=NuhVkX7Oz+JzoxuiFERe6CpnloPMKrkHKK4YhqD2/Zy2/3eolfOvqM5krkDl745/e
	 AK3WXdyJy6kgR/oEl3IjVBlXz5uaU/pgH4exyQNWivwU1ApnwbrynrGr823ayFQ8vL
	 RK5dq7smo+fhCkfXv1LNuFbtA2ZfEksTgLWkPBVA=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E09783858025
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20221208; t=1692619925; x=1693224725;
 h=content-transfer-encoding:to:subject:message-id:date:from
 :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=2X0eHPxjx2h58fSHNVDBX9/2WFYx9rjAQwzIDRpvwrg=;
 b=d9Kagp3BUZeetLp49ON+7vv14qI+w+LzHLtr6E3hiv6kCJyHo9WiWxcZ0e4h0RCVwQ
 wlzT4/fbEem3e3xfPXN4/qQtGrlZbYwD9XfnJb/c2Eyi/41ERaIP1h++0GFV1MD4XAmW
 hZbL+BsAG6Npyaw7EhBtqHWMw2SKxgmn3Ap/9qUYtgq1dTYFtrtqVvy6XfkD0uuP2PiT
 pamkNysQi5Rgx+xfn4XIq7pxlY5cmtmtwqn3I6iArzmgK/t70MM5i6bnSZZDqMnKCv+T
 QbQlr3O75jNENJg9lJZOArvlxlSIjurGhWFfdfNfw9YkOB/BYyRRnUCNYr3MqMKMMT4K
 rMIg==
X-Gm-Message-State: AOJu0YzieCAoYkeQDcKaXSNb8Uv4GYa7Rh3z/u4xO4Er9Qqth8f7B7tZ
 UlwQ9rV6Mivo/J5WlcGkIhAWEyt72qqDYpHlGaGZ8kcKqEpjW+o0
X-Google-Smtp-Source: AGHT+IFwFVfjxbjOR+b7d26j0HYaGx4pccatRZ/5ZQXN27MM2uwefT2DA4NQLV+oj/02UfHJcriI4qMcegcY4I9VIWA=
X-Received: by 2002:a4a:654e:0:b0:56c:cd0c:1d6e with SMTP id
 z14-20020a4a654e000000b0056ccd0c1d6emr4908799oog.3.1692619924950; Mon, 21 Aug
 2023 05:12:04 -0700 (PDT)
MIME-Version: 1.0
References: <CANH4o6O-8O-iMaHowDuy0y7H=pVfZ-3EvubDmTdjGVSST8FkAQ@mail.gmail.com>
 <CANH4o6MnH7gWj7d0vmkhCL5N0BTbkrbtGZGtso43MVZBJLBGtw@mail.gmail.com>
 <ZN8tK/mATx6KbQWk@calimero.vinschen.de>
In-Reply-To: <ZN8tK/mATx6KbQWk@calimero.vinschen.de>
Date: Mon, 21 Aug 2023 14:12:00 +0200
Message-ID: <CANH4o6OQhxG4hAxKBQPoht0S+3PG3WGPar-dcJ1MXQ2LDd71xA@mail.gmail.com>
Subject: Re: mkfifo: cannot set permissions of 'x.fifo': Not a directory
To: cygwin@cygwin.com, Corinna Vinschen <corinna-cygwin@cygwin.com>
X-Spam-Status: No, score=0.5 required=5.0 tests=BAYES_00, DKIM_SIGNED,
 DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,
 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
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Martin Wege via Cygwin <cygwin@cygwin.com>
Reply-To: Martin Wege <martin.l.wege@gmail.com>
Content-Type: text/plain; charset="utf-8"
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie.com@cygwin.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 37LCCk3d012631

On Fri, Aug 18, 2023 at 10:34 AM Corinna Vinschen
<corinna-cygwin@cygwin.com> wrote:
>
> On Aug 18 06:02, Martin Wege via Cygwin wrote:
> > On Mon, Aug 7, 2023 at 4:42 PM Martin Wege <martin.l.wege@gmail.com> wrote:
> > >
> > > Hello,
> > >
> > > We get a weird mkfifo failure in Cygwin on NTFS:
> > >
> > > /usr/bin/mkfifo -m 600 x.fifo
> > > mkfifo: cannot set permissions of 'x.fifo': Not a directory
> > >
> > > Is there a known workaround? So far named fifos cannot be created somehow.
> >
> > This is fixed for NTFS, but still broken for Windows builtin NFS v3 client:
>
> It was actually never supposed to work on NFS.  Cygwin FIFOs are
> created as symlinks of the type Windows shortcut with the R/O attribute
> set.  Those are only generated on NTFS and FAT filesystems.  NFS symlinks
> are generated using special magic.  NFS doesn't support DOS attributes.

NFS supports symlinks!
Easy solution would be to say that symlinks on NFS pointing to
:\0:c4:$inodenum are pipes on the local Cygwin machine.
/usr/bin/mkfifo on Cygwin creates a symlink :\0:c4:$inodenum. Cygwin
stat() functions turn symlinks with a value of :\0:c4:... to pipes.
Everyone is happy!

It does not have to be portable across different platforms. Just
portable enough that mkfifo in with bash scripts works on NFS.

Thanks,
Martin
>
> Corinna

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

