From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oi1-x231.google.com (mail-oi1-x231.google.com [IPv6:2607:f8b0:4864:20::231]) by sourceware.org (Postfix) with ESMTPS id 2110D3858D20 for ; Wed, 9 Aug 2023 09:12:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2110D3858D20 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-oi1-x231.google.com with SMTP id 5614622812f47-3a38953c928so5252151b6e.1 for ; Wed, 09 Aug 2023 02:12:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691572355; x=1692177155; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=QfbooHN3jWx8damDseXFQ7VD5kmg18CdZ2nYwTkX1JQ=; b=iXCWJtEToGmEsFzYPRJ3Sq4QtKEO91Do9sq5JYkudCtrmv3sydAeEGbtAge038GK0t q4lMucDP9jAZMBHkzBxsk0yMVGHX2fVAvy3cUU9pbRIxYC6THfmO9XpT62YX4g5VkvBn gCV5p3W06jLqHH8T83I6PbE30VLfNl+ilriWaiiPLC7W2PR1SIiyf4R9N88s26qAPsa6 ikLB8vlRCX/SI48F0BwTbho/ri1RH3jTtBh1qpLL5ANTDs4LGh0b63VyL7ejnT4oG+W4 v9nvIgRA5Fo1A5wGdT0tuUMknCSj2/KcDmwfTGJzlwkz2K7CJJBNTF50pofpPaq8Smwc kqbA== 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: From: Martin Wege 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@cygwin.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 List-Id: On Wed, Aug 9, 2023 at 10:01=E2=80=AFAM Corinna Vinschen wrote: > > On Aug 8 21:38, Martin Wege via Cygwin wrote: > > On Tue, Aug 8, 2023 at 10:20=E2=80=AFAM Corinna Vinschen > > wrote: > > > > > > On Aug 7 23:14, Martin Wege via Cygwin wrote: > > > > On Mon, Aug 7, 2023 at 9:14=E2=80=AFPM 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 6= 66 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=3Dnewlib-cygwin.git;a=3Dcommit;h=3Db56b= 4d7fd85b > > > > > > > > First, Can I download a beta of 3.4.8, or any other version with t= hat > > > > fix? It's pretty urgent > > > > > > You can install a test release of Cygwin, simply by using the setup t= ool > > > These test releases are always created from the git main branch, thou= gh, > > > 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