uutils/coreutils

mv hardlinks should be preserved when moving into a different directory

Open

#4833 aperta il 6 mag 2023

Vedi su GitHub
 (8 commenti) (0 reazioni) (0 assegnatari)Rust (1852 fork)batch import
U - mvgood first issue

Metriche repository

Star
 (23.246 star)
Metriche merge PR
 (Merge medio 5g 23h) (239 PR mergiate in 30 g)

Descrizione

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

Guida contributor