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
8685e05f4e
cp: debug with --update=none should show 'skipped'
2023-12-23 17:58:05 +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
Daniel Hofstetter
5d03d2d9d4
clippy: fix warnings introduced by Rust 1.71.0
2023-07-13 17:35:33 +02:00
Daniel Hofstetter
11b098fce1
Merge pull request #5028 from sylvestre/cp-multiple
...
cp: allow multiple usages of -R - Closes : #5027
2023-07-03 16:09:45 +02:00
Sylvestre Ledru
e491bbdbed
cp: allow multiple usages of -R/-r Closes : #5027
...
works for all other rm args
2023-07-03 14:19:45 +02:00
Daniel Hofstetter
ba509a1489
cp: use mkdir_all() instead of mkdir() in test
2023-07-03 09:24:37 +02:00
Daniel Hofstetter
732dbb3f12
cp: fix "unused variable" warning on Windows
2023-06-27 16:46:50 +02:00
Daniel Hofstetter
01f70768d9
cp: fix "unused variable" warnings on Windows
2023-06-27 14:57:06 +02:00
Sylvestre Ledru
ddcdda44db
Remove the auto capitalization of error message
2023-06-25 00:18:33 +02:00
Guillaume Ranquet
ee4691f4a2
cp: makes --preserve requires =
...
prevents --preserve to eat the next argument when no value is passed.
default value for --preserve is set to mode,ownership(unix only),timestamps
before the patch:
cp --preserve foo bar
error: invalid value 'foo' for '--preserve [<ATTR_LIST>...]'
[possible values: mode, ownership, timestamps, context, link, links, xattr, all]
Signed-off-by: Guillaume Ranquet <granquet@baylibre.com>
2023-06-04 09:46:35 +02:00
Daniel Hofstetter
bbfa77dcad
cp: replace assert!(false) with panic!()
2023-06-02 16:43:45 +02:00
Sylvestre Ledru
20ce7accf2
cp: -i prompts in the right place
...
Should fix tests/cp/cp-i.sh
2023-06-01 21:42:35 +02:00
Sylvestre Ledru
4eb1e847e9
cp --no-clobber should fail
2023-06-01 21:42:32 +02:00
Sylvestre Ledru
f2006a9a6b
cp: add support of cp --debug
2023-05-29 22:44:57 +02:00
John Shin
a817186e10
cp: preserve permissions on -r -p --parents
2023-05-12 11:34:51 -07:00
Daniel Hofstetter
98fa941250
Merge pull request #4759 from sylvestre/clippy4
...
fix some clippy warnings in tests
2023-05-12 07:15:44 +02:00
Sylvestre Ledru
d98293bdaa
bring back the empty line
2023-05-11 18:20:28 +02:00
John Shin
7a31d841ba
cp: preserve permission on -p --parents ( #4853 )
2023-05-11 16:44:23 +02:00
Sylvestre Ledru
b94d10f080
Fix some semicolon_if_nothing_returned
2023-05-06 19:35:44 +02:00
Daniel Hofstetter
616a166e36
Merge pull request #4820 from sylvestre/thru-dangling-2
...
cp: fix cp -f f loop when loop is a symlink loop
2023-05-04 08:20:57 +02:00
Sylvestre Ledru
832fd2d2c6
cp: fix cp -f f loop when loop is a symlink loop
...
Fix: tests/cp/thru-dangling.sh
2023-05-03 19:54:35 +02:00
Daniel Hofstetter
a97199f72a
Merge pull request #4796 from shinhs0506/mv-cp-update
...
mv, cp: add support for --update=none,all,older
2023-05-03 15:21:21 +02:00