X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D05213858298 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1691572377; bh=Lu8PPWABGhrdHmYx9/APW5tvTlPNKbWg11/4KRx42Z4=; 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=RqKfHerDv+rD65SBbUJ5MqfGXAXEuxTCWLKcmlMVu53A6nr71QqpxQ/Z3cogejXky hyEWHdmdaEhLSxvTOfal42SyOqvkm4k4EKdRymX6itpqpvA/9B/sEoMdvAWFhq5jfo /r/JnCtFHmLO5LWpwez7ZwXfhjvMXenVC7F/QJgo= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2110D3858D20 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691572355; x=1692177155; 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=QfbooHN3jWx8damDseXFQ7VD5kmg18CdZ2nYwTkX1JQ=; b=CsCDH4VFUgvoz305dzebcb6J8MRvfZZZ6Gh0tKOXbvryALVSwFBAPklW38xG34L8/9 alsfGc8edSu0vpccVfGn+cuQGErafjeF1iqc+2XeaHZKIKOBxkFfrfAFPlvpU6gnx28H 9BTMgFqd2OD2qfXPe1YwRU5DM90/l2MBYy5v1119imG02ZNMSnqdN3HBa+DCUkzfIE/y ldduvl0Ld4Rzhv2ncIPMBDXUbIZuuN4o5kdMtJB6HxSGp8bUUMcWIsdE0nvwtK0H6M0e HnuMasyEO/Kgz91O8hXiKUf8YbrkgqVNtdIzunq5PlF1tOASIIP8+zv7nxauJ5HfTQ8f 5euw== X-Gm-Message-State: AOJu0YzXBbUcfAIULIzJ16qT5slx6f7pjrBnrY4cgx1sd4jZVE9vhlYh jYGwOm1ysSTj4BOyJt7dMxWDpTUG7YmGtJ5kXmcCH6fNgiY= X-Google-Smtp-Source: AGHT+IHKcxsagxZpEsA8v4UU/mcXaqKz0crT9yccg3LYg6zJPNd1O3xLGyUy7dZ3jHX1ticdkoF5BmuZpTXr31YZUws= X-Received: by 2002:a05:6808:10cb:b0:3a7:96e5:6a58 with SMTP id s11-20020a05680810cb00b003a796e56a58mr2413943ois.18.1691572355058; Wed, 09 Aug 2023 02:12:35 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 9 Aug 2023 11:12:24 +0200 Message-ID: Subject: Re: mkfifo: cannot set permissions of 'x.fifo': Not a directory To: cygwin AT cygwin DOT com X-Spam-Status: No, score=-0.2 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 AT cygwin DOT com X-Mailman-Version: 2.1.29 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , From: Martin Wege via Cygwin Reply-To: Martin Wege Content-Type: text/plain; charset="utf-8" Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 3799CxUk001679 On Wed, Aug 9, 2023 at 10:01 AM Corinna Vinschen wrote: > > On Aug 8 21:38, Martin Wege via Cygwin wrote: > > On Tue, Aug 8, 2023 at 10:20 AM Corinna Vinschen > > wrote: > > > > > > On Aug 7 23:14, Martin Wege via Cygwin wrote: > > > > On Mon, Aug 7, 2023 at 9:14 PM Corinna Vinschen > > > > wrote: > > > > > > > > > > On Aug 7 12:26, Brian Inglis via Cygwin wrote: > > > > > > On 2023-08-07 08:42, Martin Wege via Cygwin wrote: > > > > > > > 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 > > > > > > > > > > > > This error is also reproducible with default fifo permissions 666 or > > > > > > anything else, and appears to be returned by gen_full_path_at() in > > > > > > syscalls.cc when called with a fifo: > > > > > > > > > > This will be fixed in 3.4.8, > > > > > > > > Thank you > > > > > > > > > see > > > > > https://cygwin.com/git/?p=newlib-cygwin.git;a=commit;h=b56b4d7fd85b > > > > > > > > First, Can I download a beta of 3.4.8, or any other version with that > > > > fix? It's pretty urgent > > > > > > You can install a test release of Cygwin, simply by using the setup tool > > > These test releases are always created from the git main branch, though, > > > so they are always test releases of the next major version, currently > > > 3.5.0. > > > > Where can I download the Setup.exe tool for those test releases? > > You already have it: https://cygwin.com/install.html Thanks > > > > > Secondly, how are fifos, other device nodes and mknod implemented? You > > > > encode them as softlinks on ntfs? > > > > > > Not only on NTFS. FIFOs on the disk are always created as symlinks > > > with a special target string, recognized by Cygwin. No differece on > > > NFS. Microsoft NFSv3 has no way to specify creating a "real" FIFO > > > on the remote filesystem. It wouldn't make sense anyway, because > > > there's no way to share the FIFO across systems. > > > > So no Windows ioctl to do a mknod? > > Windows does not have provisions to store FIFOs on disk. The closest > you get in Windows are Windows named pipes, and those are stored > non-permanently in a special, temporary filesystem inside the native NT > namespace. Try this in Cygwin: > > $ cd /proc/sys/Device/NamedPipe/ <-- trailing slash! > $ ls -l > > FIFOs in the normal Windows filesystem are a Cygwin fake. Maybe make pipes in Cygwin symlinks to /proc/sys/Device/NamedPipe/? > > What does a Linux/FreeBSD FIFO file look like, if you export that > > filesystem via NFSv3, and mount it via the native Windows NFSv3 > > driver, and do a ls -l in Cygwin? > > It looks like a FIFO because MSFT NFSv3 exports the stat(2) info > verbatim: > > linux$ mkfifo blubb > > cygwin$ ls -l blubb > prw-r--r-- 1 corinna vinschen 0 Aug 8 10:22 blubb Will cygwin treat this as a FIFO? Can cygwin set the 'p' flag via a magic ioctl? Thanks, Martin -- 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