Sylvestre Ledru
dcfb03aad6
Fix clippy warnings
2024-03-09 22:31:33 +01:00
Ben Wiederhake
ba1c6b0044
cp: fix flaky test test_cp_arg_interactive_update, document adjacent bug
2024-03-01 11:41:22 +01:00
kralo
5dccfc2441
cp: test_cp_preserve_xattr_fails_on_android disabled as its now failing to fail
2024-01-28 08:56:08 +01:00
Sylvestre Ledru
69c8753f80
cp test: use compare_xattrs from tests/utils
2024-01-16 13:12:02 +01:00
Sylvestre Ledru
fff83995fb
cp: --preserve should keep xattr ( #5834 )
...
* cp: --preserve should keep xattr
Should help with tests/cp/acl.sh
* Update tests/by-util/test_cp.rs
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
* Update tests/by-util/test_cp.rs
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
* Update tests/by-util/test_cp.rs
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
---------
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2024-01-15 10:59:04 +01:00
Sylvestre Ledru
36039a819d
Merge pull request #5739 from cakebaker/cp_backup_with_symlink_to_source
...
cp: backup dest symlink linking to source
2024-01-14 23:30:06 +01:00
Sylvestre Ledru
e3beda08ac
Merge pull request #5762 from cakebaker/cp_link_same_file
...
cp: show no "same file" error for `--link a a`
2024-01-14 23:29:33 +01:00
Sylvestre Ledru
aabf5fa577
cp: manages target with trailing '/'
2024-01-05 12:56:27 +01:00
Daniel Hofstetter
7ddeba4b98
cp: show no "same file" error for --link a a
2024-01-01 14:30:27 +01:00
Daniel Hofstetter
5673f32c63
cp: show error if source & dest are same file
2023-12-31 16:01:34 +01:00
Daniel Hofstetter
2c42623b6e
cp: backup dest symlink linking to source
2023-12-31 14:09:08 +01:00
Sylvestre Ledru
193bcf86b7
cp: Disable a test failing on freebsd
2023-12-30 17:00:44 +01:00
Daniel Hofstetter
7025619325
cp: adapt warning if source is used more than once
2023-12-29 10:24:08 +01:00
Daniel Hofstetter
0701f535ac
cp: fix backup of destination symlink
2023-12-27 15:39:54 +01:00
Sylvestre Ledru
167acb5147
Merge pull request #5484 from cakebaker/cp_l_with_dest_hardlink_to_source
...
cp --link: don't fail if destination is hardlink to source
2023-12-26 16:12:15 +01:00
Daniel Hofstetter
f10c6f1d56
Merge pull request #5699 from sylvestre/mv-cp-seen
...
cp/mv/ln: add support for the "will not overwrite just-created"
2023-12-25 14:58:50 +01:00
Daniel Hofstetter
4946478409
cp: -l don't fail if dest is hardlink to source
2023-12-25 13:03:11 +01:00
Sylvestre Ledru
356023b055
Merge pull request #5431 from cakebaker/cp_remove_destination_shouldnt_fail_hardlink
...
cp --remove-destination: don't fail if destination is hardlink to source
2023-12-25 13:02:50 +01:00
Sylvestre Ledru
15573579cc
Fix the windows tests
2023-12-24 15:18:31 +01:00
Sylvestre Ledru
8685e05f4e
cp: debug with --update=none should show 'skipped'
2023-12-23 17:58:05 +01:00
Sylvestre Ledru
06c98fbdd3
cp: don't fail when --backup=numbered is passed
2023-12-23 12:48:38 +01:00
Sylvestre Ledru
837640bc02
cp: manages the 'seen' file list before copying
...
Should help with tests/mv/childproof.sh
2023-12-23 12:11:35 +01:00
Nathan Houghton
0ea1a7cd88
tests/cp, tests/test: Don't attempt to set sticky file bit on FreeBSD
...
On FreeBSD (and OpenBSD), only the superuser can set the file sticky
bit.
2023-12-02 16:58:27 +01:00
Piotr Kwiecinski
c6e7fdcabe
skip test_cp_arg_update_interactive on FreeBSD
2023-11-30 18:45:06 +01:00
Daniel Hofstetter
285e580b6e
cp: improve error msg if -r is not specified
2023-11-20 09:15:15 +01:00
Daniel Hofstetter
761213f1d2
cp: make test_closes_file_descriptors Linux-only
2023-11-08 09:33:49 +01:00
Daniel Hofstetter
91b19b7c56
cp,tail: fix warnings in tests on Android
2023-11-05 13:56:39 +01:00
Terts Diepraam
98ad01b1cc
Merge pull request #5471 from cakebaker/cp_fix_unused_variable_warnings
...
cp: restrict two test functions to linux/mac/win
2023-11-01 09:11:38 +01:00
tommady
a4775d288b
cp: fix cp -rT dir dir2 leads to different result than with GNU cp ( #5467 )
...
* add a test case test_cp_treat_dest_as_a_normal_file
* fix 5457
* cp: fix comment
---------
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2023-10-30 17:55:03 +01:00
Daniel Hofstetter
a7cc3b6dca
cp: restrict two test functions to linux/mac/win
2023-10-29 14:37:47 +01:00
Daniel Hofstetter
9f5db29145
cp: add test for --attributes-only
2023-10-27 09:34:31 +02:00
Daniel Hofstetter
6085cf12e3
Merge pull request #5353 from tommady/fix-5327
...
cp: fix cp -a --no-preserve=mode doesn't keep fully the mode
2023-10-25 13:34:45 +02:00
Daniel Hofstetter
9df50096c8
cp: remove "all" from cfg; rename test fn
2023-10-25 10:15:46 +02:00
Daniel Hofstetter
94492c98a5
cp: --rem don't fail if dest is hardlink to source
2023-10-22 22:17:49 +02:00
Daniel Hofstetter
772892e2e4
cp: --rem don't fail if dest is symlink to source
2023-10-20 09:41:30 +02:00
tommady
edb5b65b01
Merge branch 'main' of github.com:uutils/coreutils into fix-5327
2023-10-11 08:39:52 +00:00
Daniel Hofstetter
6dd53c7a71
clippy: fix warnings in tests
2023-10-06 10:11:26 +02:00
tommady
5ce3720820
fix freebds mode_t is u16 but other unix platforms are u32
2023-10-04 09:12:26 +00:00
tommady
879b4f363d
Merge branch 'main' into fix-5327
2023-10-04 16:06:48 +08:00
tommady
88f88e51cc
fix expected , found and spelling errors
2023-10-04 07:12:25 +00:00
Terts Diepraam
689b21d0b8
Merge pull request #5348 from cakebaker/cp_show_no_skipped_message
...
cp: show no "skipped" msg with -vi/-vin
2023-10-03 11:58:47 +02:00
PGIII
252d01ac33
cp: fail when trying to copy to read only file on mac ( #5261 )
...
* cp: fail when trying to copy to read only file
* fix spelling error in macos.rs
* simplify permissions check
* add comment
* fix typo
2023-10-03 00:48:22 +02:00
Daniel Hofstetter
8ee69d2b92
cp: show no "skipped" msg with -vi/-vin
2023-10-02 15:38:34 +02:00
tommady
718a527e9b
add testcase for no preserve mode
2023-09-30 07:09:57 +00:00
tommady
2789885648
cp: fix cp -dR --no-preserve=links d c should have different inodes ( #5320 )
...
* fix issue 5308
2023-09-27 13:16:10 +02:00
tommady
bd0fb817a7
cp: fix the result of inodes are not the same when preserve links is flagged ( #5064 )
...
Should fix:
```
rm -rf a b c
touch a
ln -s a b
mkdir c
./target/debug/coreutils cp --preserve=links -R -H a b c
a_inode=$(ls -i c/a|sed 's,c/.*,,')
b_inode=$(ls -i c/b|sed 's,c/.*,,')
echo "$a_inode" = "$b_inode"
```
2023-09-24 10:53:27 +02:00
David Matos
8be6338da9
cp: Error out if cp only contains source
2023-09-05 23:35:14 +02:00
Sylvestre Ledru
0b9c829bce
Merge pull request #5182 from sylvestre/clippy_
...
Fix some of the recent clippy warnings
2023-08-21 16:21:02 -04:00
Sylvestre Ledru
bfca6bf70f
Add license headers on all files
2023-08-21 10:49:27 +02:00
Sylvestre Ledru
7c9f4ba92a
Fix some clippy warnings
2023-08-21 08:41:40 +02:00