uutils/coreutils

mv hardlinks should be preserved when moving into a different directory

Open

#4.833 geöffnet am 6. Mai 2023

Auf GitHub ansehen
 (8 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Rust (1.852 Forks)batch import
U - mvgood first issue

Repository-Metriken

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

Beschreibung

Testcase:

export C=/usr/bin/
export C="target/debug/coreutils "
dir=hlink
other_partition_tmpdir=/dev/shm/tmp769306

rm -rf $dir $other_partition_tmpdir
mkdir $dir $other_partition_tmpdir
> $dir/a
ln $dir/a $dir/b

${C}mv $dir "$other_partition_tmpdir"

ls -1i "$other_partition_tmpdir/$dir"

They should be equal. They aren't currently

Contributor Guide