uutils/coreutils

mv Cross-Device Symlink Fallback EEXIST

クローズ

#10,010 opened on 2026/01/03

 (0 件のコメント) (0 件のリアクション) (0 人の担当者)Rust (2,003 件のフォーク)batch import
U - mvgood first issuereported-canonical

Repository metrics

Stars
 (23,984 個のスター)
PR merge metrics
 (PR metrics pending)

説明

Component

mv

Description

When moving a symlink across filesystems onto an existing destination path, uutils mv fails instead of replacing the destination like GNU mv does.

Test / Reproduction Steps

On filesystem A (e.g. /tmp), create a symlink:
$ ln -s /etc/passwd /tmp/src_link

On filesystem B (e.g. /home), create an existing destination:
$ touch /home/$USER/dst_exists
$ coreutils mv /tmp/src_link /home/$USER/dst_exists
  • GNU: dst_exists has been replaced with src_link.
  • uutils: File exists (os error 17)

Impact

The file move fails instead of overwriting the target directly.

コントリビューターガイド