From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp3-g21.free.fr (smtp3-g21.free.fr [212.27.42.3]) by sourceware.org (Postfix) with ESMTPS id B41D93858CDB for ; Wed, 21 Sep 2022 20:16:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org B41D93858CDB Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=Denis-Excoffier.org Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=Denis-Excoffier.org Received: from smtpclient.apple (unknown [IPv6:2a01:e0a:a2e:d4d0:f58e:1436:699b:dd76]) by smtp3-g21.free.fr (Postfix) with ESMTPS id E41BA13F89D; Wed, 21 Sep 2022 22:16:10 +0200 (CEST) From: Denis Excoffier Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Subject: Permission denied when moving symlink across filesystems (but works) Message-Id: Date: Wed, 21 Sep 2022 22:16:10 +0200 Cc: Denis Excoffier To: cygwin@cygwin.com X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Spam-Status: No, score=-0.6 required=5.0 tests=BAYES_00,JMQ_SPF_NEUTRAL,KAM_DMARC_STATUS,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NEUTRAL,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hello, I see an unexpected error message when i move a symlink from a file = system into another one. However, it works perfectly, only the error message is under question. How to reproduce: jupiter% uname -a CYGWIN_NT-10.0-17763 PC17470 3.3.6-341.x86_64 2022-09-06 06:25 UTC = x86_64 Cygwin jupiter% mount (...) F: on /cygdrive/f type ntfs (binary,posix=3D0,user,noumount,auto) G: on /cygdrive/g type ntfs (binary,posix=3D0,user,noumount,auto) (=E2=80=A6) jupiter% getfacl -n /cygdrive/f/xx /cygdrive/g/xx # file: /cygdrive/f/xx # owner: 1111111 # group: 1049089 user::rwx group::r-x other::r-x default:user::rwx default:group::r-x default:other::r-x # file: /cygdrive/g/xx # owner: 1111111 # group: 1049089 user::rwx group::r-x other::r-x default:user::rwx default:group::r-x default:other::r-x jupiter% rm -f /cygdrive/f/xx/lcheck /cygdrive/g/xx/lcheck jupiter% /usr/bin/ln -s xxxxxxx /cygdrive/f/xx/lcheck jupiter% ls -aln /cygdrive/f/xx/lcheck lrwxrwxrwx 1 1111111 1049089 7 Sep 21 17:35 /cygdrive/f/xx/lcheck -> = xxxxxxx jupiter% /usr/bin/mv /cygdrive/f/xx/lcheck /cygdrive/g/xx/lcheck /usr/bin/mv: listing attributes of '/cygdrive/f/xx/lcheck': Permission = denied jupiter% ls -aln /cygdrive/f/xx/lcheck /cygdrive/g/xx/lcheck ls: cannot access =E2=80=98/cygdrive/f/xx/lcheck=E2=80=99: No such file = or directory lrwxrwxrwx 1 1111111 1049089 7 Sep 21 17:35 /cygdrive/g/xx/lcheck -> = xxxxxxx jupiter% The target of the link may be existing or not, absolute or relative, = folder or simple file, the message is still there. The location of the symlink can be directly at the mount point or not, = same message. The symlink may be alone (like here) or part of a whole tree structure, = same message. However, if source dir and target dir all reside in the same file = system, no message. The type of symlink is the default one (i can see =E2=80=98=E2=80= =99 in DOS cmd window). This also occurs (occurred) under 3.3.5, and 3.3.4-2 at least. Could it be intended behavior? Regards, Denis Excoffier.=