Daniel Hofstetter
725da985c1
Fix "item x imported redundantly" warnings
2024-02-19 15:39:37 +01:00
kralo
ee7f99aad0
cp: use inclusive range
...
as suggested by clippy::range-plus-one
2024-01-28 09:42:40 +01:00
kralo
12dd1e4d7d
cp: remove lint exceptions
...
Could not even reproduce what they would complain for.
Closes : #5885
2024-01-27 19:21:05 +01:00
Sylvestre Ledru
dd5c6c2d00
0.0.23 => 0.0.24
2024-01-20 20:12:19 +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
e64a0b4a26
Various fixes
...
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2024-01-05 12:56:27 +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
902a128ea8
cp: rename function
...
is_forbidden_copy_to_same_file -> is_forbidden_to_copy_to_same_file
2023-12-31 14:36:18 +01:00
Daniel Hofstetter
2c42623b6e
cp: backup dest symlink linking to source
2023-12-31 14:09:08 +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
f86e314f46
Fix some obvious comment
...
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2023-12-25 11:17:04 +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
Ian Douglas Scott
db91e12a1d
Fix build on Redox, and add stat
to Redox feature
2023-12-11 04:38:17 -08:00
Daniel Hofstetter
285e580b6e
cp: improve error msg if -r is not specified
2023-11-20 09:15:15 +01:00
Sylvestre Ledru
ff92bfb25b
Prepare version 0.0.23
2023-11-13 22:02:01 +01:00
Daniel Hofstetter
0cad85f2fb
Merge pull request #5486 from tertsdiepraam/cp-remove-crash-call
...
`cp`: remove `crash!` call
2023-11-03 08:23:24 +01:00
Terts Diepraam
a6522e0114
cp
: remove crash!
call
...
It seems to be unnecessary since we have already made the path relative
using `construct_dest_path`.
2023-11-02 16:23:31 +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
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
f8a30d524e
cp: rename handling_no_preserve_mode
...
to handle_no_preserve_mode
2023-10-25 10:43:23 +02:00
Daniel Hofstetter
086f7b548c
cp: replace word in comment
2023-10-25 10:20:01 +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
Sylvestre Ledru
e1bd47d549
0.0.21 => 0.0.22
2023-10-15 14:33:23 +02:00
tommady
c9fa07035b
fix linter errors
2023-10-12 02:52:02 +00:00
tommady
9be5583d36
Update src/uu/cp/src/cp.rs
...
Co-authored-by: Sylvestre Ledru <sledru@mozilla.com>
2023-10-12 10:42:52 +08:00
tommady
7ea19c7c5d
Update src/uu/cp/src/cp.rs
...
Co-authored-by: Sylvestre Ledru <sledru@mozilla.com>
2023-10-12 10:42:44 +08:00
tommady
c59b0f11fd
fix linter
2023-10-11 08:57:04 +00:00
tommady
edb5b65b01
Merge branch 'main' of github.com:uutils/coreutils into fix-5327
2023-10-11 08:39:52 +00:00
tommady
78e1eae1ef
address comment
2023-10-11 08:29:13 +00:00
tommady
6cb0d5ad7d
add comment for explicit in the Preserve enum
2023-10-11 07:53:03 +00:00
Sylvestre Ledru
8e8a91be5d
Ignore more cognitive_complexity
2023-10-08 17:46:11 +02:00
tommady
aaea3b40fb
fix freebsd typo
2023-10-04 09:16:54 +00:00
tommady
5ce3720820
fix freebds mode_t is u16 but other unix platforms are u32
2023-10-04 09:12:26 +00:00
tommady
6c05385d77
fix macos-12 mode_t is u16 but other unix platforms are u32
2023-10-04 08:31:07 +00:00
tommady
74c393974c
fix android mode_t is u16 but other unix platforms are u32
2023-10-04 08:17:40 +00:00
tommady
879b4f363d
Merge branch 'main' into fix-5327
2023-10-04 16:06:48 +08:00
tommady
cdde57608c
fix macos mode_t is u16 but other unix platforms are u32
2023-10-04 08:06:30 +00:00
tommady
88f88e51cc
fix expected , found and spelling errors
2023-10-04 07:12:25 +00:00