uutils/coreutils

mv Cross-Device Symlink Fallback EEXIST

Geschlossen

#10.010 geöffnet am 03.01.2026

 (0 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Rust (1.976 Forks)batch import
U - mvgood first issuereported-canonical

Repository-Metriken

Stars
 (23.854 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 5T 23h) (239 gemergte PRs in 30 T)

Beschreibung

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.

Contributor Guide