X-Recipient: archive-cygwin AT delorie DOT com X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com 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 From: Denis Excoffier 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 To: cygwin AT cygwin DOT 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 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: , Cc: Denis Excoffier Content-Type: text/plain; charset="utf-8" Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 28LKHEYV004311 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=0,user,noumount,auto) G: on /cygdrive/g type ntfs (binary,posix=0,user,noumount,auto) (…) 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 ‘/cygdrive/f/xx/lcheck’: 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 ‘’ 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. -- 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