Skip to content

Commit 35d2e02

Browse files
committed
add a temp test case to reproduce
1 parent b552bd9 commit 35d2e02

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

cp-arch-test.sh

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
set -e
2+
rm -rf dir
3+
mkdir dir
4+
echo "a" > dir/1
5+
echo "b" > dir/2
6+
touch -d "2 hours ago" dir/1
7+
chmod 705 dir/*
8+
cd dir
9+
ln -s 1 1.link
10+
ln -s 2 2.link
11+
cd -
12+
cp --archive dir dir-copy-archive
13+
ls -al dir-copy-archive|grep "rwx---r-x"
14+
ls -al dir-copy-archive|grep "1.link -> 1"
15+
./target/debug/coreutils cp --archive -v dir dir-copy-archive-rust
16+
ls -al dir-copy-archive-rust|grep "rwx---r-x"
17+
# les symlinks ne sont pas créés
18+
ls -al dir-copy-archive-rust|grep "1.link -> 1"

0 commit comments

Comments
 (0)