From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oo1-xc2d.google.com (mail-oo1-xc2d.google.com [IPv6:2607:f8b0:4864:20::c2d]) by sourceware.org (Postfix) with ESMTPS id E09783858025; Mon, 21 Aug 2023 12:12:05 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E09783858025 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-oo1-xc2d.google.com with SMTP id 006d021491bc7-570d0567929so498838eaf.0; Mon, 21 Aug 2023 05:12:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692619925; x=1693224725; 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=2X0eHPxjx2h58fSHNVDBX9/2WFYx9rjAQwzIDRpvwrg=; b=syE3vEkz3ZKy6MlZ29Ag2RuOocr8C8Q3PSnTgf2q7Mt5QBQw81m5RJoOsr5UTTkDuI nXiIinPQ39/iFSTW35EHZnJsvpam5Cq9zmmoSIxqP+tRh0IngMV5i1TijlZg7nJpk/fI fIsJI6yO1BN5d1fpOVmO0KpNlKx3lSPM7coXlpmS9GgiJC3ReAuxe8Ob9zrpopGj7Rvd iNz297IjtvlE/btFGr1tUhBQt9ElXQZSTNtk8+QzTWq7C8sWGBQoW3cooCwwu63osd8k FPbhL5g2xEerdLEymHsgdhiukn6Is/xa5oF+PvFGK71vvWbUZkg4/7i5rfRzpEBehC2x ipRg== 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: In-Reply-To: From: Martin Wege Date: Mon, 21 Aug 2023 14:12:00 +0200 Message-ID: Subject: Re: mkfifo: cannot set permissions of 'x.fifo': Not a directory To: cygwin@cygwin.com, Corinna Vinschen Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 List-Id: On Fri, Aug 18, 2023 at 10:34=E2=80=AFAM Corinna Vinschen wrote: > > On Aug 18 06:02, Martin Wege via Cygwin wrote: > > On Mon, Aug 7, 2023 at 4:42=E2=80=AFPM Martin Wege 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 som= ehow. > > > > This is fixed for NTFS, but still broken for Windows builtin NFS v3 cli= ent: > > 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