uutils/coreutils

mv hardlinks should be preserved when moving into a different directory

開放

#4,833 建立於 2023年5月6日

 (8 則留言) (0 個反應) (0 位負責人)Rust (2,003 個分叉)batch import
U - mvgood first issue

倉庫指標

星標
 (23,984 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

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

貢獻者指南