Jeffrey Finkelstein
cd3f7b89a7
cp: make cp -a not fail on Windows
...
Before this commit, `cp -a` would terminate with a non-zero status
code on Windows because there are no extended attributes (xattr) to
copy. However, the GNU documentation for cp states
> Try to preserve SELinux security context and extended attributes
> (xattr), but ignore any failure to do that and print no
> corresponding diagnostic.
so it seems reasonable to do nothing instead of exiting with an error
in this case.
2022-10-23 00:03:26 -04:00
Jeffrey Finkelstein
cee6c25cc4
cp: make test for interactive mode more specific
2022-10-23 00:03:26 -04:00
Sylvestre Ledru
bb27734f6a
Merge pull request #4067 from uutils/dependabot/cargo/filetime-0.2.18
...
build(deps): bump filetime from 0.2.17 to 0.2.18
2022-10-22 19:55:44 +02:00
Huijeong Kim
02f6fa7b24
hashsum: test b3sum::test_nonames for real ( #4027 )
...
* hashsum: test b3sum::test_nonames for real
Signed-off-by: Huijeong Kim <herehuijeong@gmail.com>
* apply cargo format
Signed-off-by: Huijeong Kim <herehuijeong@gmail.com>
2022-10-22 11:23:39 +02:00
Sylvestre Ledru
1d9ec1ed94
Merge pull request #3927 from niyaznigmatullin/fix_timeout_test_tmp_files_deleted_on_sigint
...
test_sort: Fix timeout issue `test_tmp_files_deleted_on_sigint`
2022-10-22 10:24:30 +02:00
dependabot[bot]
5696059d51
build(deps): bump filetime from 0.2.17 to 0.2.18
...
Bumps [filetime](https://github.com/alexcrichton/filetime ) from 0.2.17 to 0.2.18.
- [Release notes](https://github.com/alexcrichton/filetime/releases )
- [Commits](https://github.com/alexcrichton/filetime/compare/0.2.17...0.2.18 )
---
updated-dependencies:
- dependency-name: filetime
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-10-22 08:21:48 +00:00
Sylvestre Ledru
e4fe2b10fa
Merge pull request #4014 from tertsdiepraam/ls-windows-permissions
...
`ls`, `stat`: Show more info in long format on Windows
2022-10-22 10:21:43 +02:00
Sylvestre Ledru
5f9e66a2fb
Merge pull request #4064 from dmatos2012/hashsum-process-files-before-exit
...
hashsum: warn on file not found rather than fail
2022-10-22 10:18:05 +02:00
Sylvestre Ledru
7c1d8267c1
Merge pull request #4068 from uutils/dependabot/cargo/clap-4.0.18
...
build(deps): bump clap from 4.0.17 to 4.0.18
2022-10-22 10:17:36 +02:00
dependabot[bot]
2a0ac55f9a
build(deps): bump clap from 4.0.17 to 4.0.18
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.0.17 to 4.0.18.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.0.17...v4.0.18 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-10-21 06:44:57 +00:00
Sylvestre Ledru
ab3994c221
Merge pull request #4065 from niyaznigmatullin/migrate_winapi_windows-sys
...
Migrate from `winapi` to `windows-sys`
2022-10-20 17:22:34 +02:00
Niyaz Nigmatullin
3973e8dd79
deny: add windows-sys
and its subcrates as duplicates
2022-10-20 12:16:22 +03:00
Niyaz Nigmatullin
0eae0fdb74
whoami: migrate winapi
to windows-sys
crate
2022-10-20 12:16:22 +03:00
Niyaz Nigmatullin
f95a14537b
touch: migrate winapi
to windows-sys
crate
2022-10-20 12:16:22 +03:00
Niyaz Nigmatullin
580bff02f8
sync: migrate winapi
to windows-sys
crate
2022-10-20 12:16:22 +03:00
Niyaz Nigmatullin
5ef1745960
tail: migrate winapi
to windows-sys
crate
2022-10-20 12:16:22 +03:00
Niyaz Nigmatullin
ff30cacbe1
date: migrate winapi
to windows-sys
crate
2022-10-20 12:16:22 +03:00
Niyaz Nigmatullin
b0b7565ba9
hostname: migrate winapi
to windows-sys
crate
2022-10-20 12:16:22 +03:00
Niyaz Nigmatullin
05a224d40e
rm: migrate winapi
to windows-sys
crate
2022-10-20 12:16:22 +03:00
Niyaz Nigmatullin
c26bf02a04
du: migrate winapi
to windows-sys
crate
2022-10-20 12:16:22 +03:00
Niyaz Nigmatullin
45dea119fa
cp: remove unused winapi
dependency
2022-10-20 12:16:22 +03:00
Niyaz Nigmatullin
76ee0db26c
uucore: migrate from winapi
to windows-sys
crate
2022-10-20 12:16:22 +03:00
Sylvestre Ledru
49c435a25b
ignore a word
2022-10-20 07:46:38 +02:00
Sylvestre Ledru
0f2067f0b9
Merge pull request #3901 from jfinkels/cp-refactor-copy-direntry
...
cp: move copy_directory() to its own module
2022-10-20 07:45:26 +02:00
Jeffrey Finkelstein
aeba601335
cp: break up copy_directory() into helper funcs
...
Add some additional structs and helper functions to make the code in
`copydir.rs` easier to read and maintain. This commit changes only the
organization of the code, not its function.
2022-10-19 22:39:34 -04:00
Jeffrey Finkelstein
d8146d1b5c
cp: move copy_directory to new module copydir.rs
...
Move the `copy_directory()` helper function to a new module
`copydir.rs`. This commit only changes the organization of the code,
not its behavior.
2022-10-19 22:39:12 -04:00
Jeffrey Finkelstein
11d3e0f743
cp: refactor Options::preserve_hard_links()
...
Refactor common code into a helper method
`Options::preserve_hard_links()`. This also eliminates the need for
mutability in a local variable in two places.
2022-10-19 22:35:10 -04:00
David Matos
d46e5df3d3
hashsum: warn on file not found rather than fail
2022-10-19 22:46:47 +02:00
Sylvestre Ledru
536dd90ce5
Merge pull request #4062 from uutils/dependabot/cargo/clap-4.0.17
...
build(deps): bump clap from 4.0.16 to 4.0.17
2022-10-19 11:31:47 +02:00
Sylvestre Ledru
1b45e50655
Merge pull request #4063 from uutils/dependabot/cargo/sha3-0.10.6
...
build(deps): bump sha3 from 0.10.5 to 0.10.6
2022-10-19 11:31:22 +02:00
dependabot[bot]
e2c368cee0
build(deps): bump sha3 from 0.10.5 to 0.10.6
...
Bumps [sha3](https://github.com/RustCrypto/hashes ) from 0.10.5 to 0.10.6.
- [Release notes](https://github.com/RustCrypto/hashes/releases )
- [Commits](https://github.com/RustCrypto/hashes/compare/sha3-v0.10.5...sha3-v0.10.6 )
---
updated-dependencies:
- dependency-name: sha3
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-10-19 06:27:28 +00:00
dependabot[bot]
e538235945
build(deps): bump clap from 4.0.16 to 4.0.17
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.0.16 to 4.0.17.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.0.16...v4.0.17 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-10-19 06:27:07 +00:00
Niyaz Nigmatullin
43d85c6489
rand_pcg is used only in unix tests, moved to unix dev-dependencies
2022-10-18 13:18:50 +03:00
Niyaz Nigmatullin
729d97e993
test_sort: use Pcg32 random number generator
2022-10-18 13:18:50 +03:00
Niyaz Nigmatullin
ec8e610e48
test_sort: created a new big file for sort
...
Before, the sort could work faster and we could be late with
the signal.
Now we create a new big file, `sort` can't process it in a minute,
so we can safely wait for the temporary directory to be created
and send a signal afterwards
2022-10-18 13:18:50 +03:00
Niyaz Nigmatullin
95e7b53402
test_sort: make timeout smarter, wait if failed to create dir
...
Before the change it slept for 0.1 seconds and right after that
asserted if `sort` has created the directory. Sometimes `sort`
didn't manage to create the directory in 0.1 seconds.
So the change is it tries to wait for `timeout` starting with
0.1 seconds, and if directory was not found, it tries 4 more times,
each time increasing timeout twice. Once the directory is found
it breaks.
2022-10-18 13:18:50 +03:00
Sylvestre Ledru
513b764434
Merge pull request #4057 from uutils/dependabot/cargo/clap-4.0.16
...
build(deps): bump clap from 4.0.15 to 4.0.16
2022-10-18 10:46:15 +02:00
Sylvestre Ledru
f4484c71b6
Merge pull request #4058 from niyaznigmatullin/windows_tests
...
tests: fixed some tests on Windows
2022-10-18 10:45:51 +02:00
Niyaz Nigmatullin
cefc4f6736
tests: fixed some tests on Windows
...
Tests used to use system `touch` and `ls` instead of
testing bench `fixtures.touch` and `uu_ls`
2022-10-18 10:00:28 +03:00
dependabot[bot]
ee561973c5
build(deps): bump clap from 4.0.15 to 4.0.16
...
Bumps [clap](https://github.com/clap-rs/clap ) from 4.0.15 to 4.0.16.
- [Release notes](https://github.com/clap-rs/clap/releases )
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md )
- [Commits](https://github.com/clap-rs/clap/compare/v4.0.15...v4.0.16 )
---
updated-dependencies:
- dependency-name: clap
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-10-18 08:59:59 +02:00
Sylvestre Ledru
3ec8cc3976
Merge pull request #4056 from niyaznigmatullin/split_fix_clap_update
...
split: fix `---io` for clap 4
2022-10-18 08:59:51 +02:00
Niyaz Nigmatullin
505865cce8
split: fix ---io
for clap 4
2022-10-18 00:21:27 +03:00
Sylvestre Ledru
969f821830
Merge pull request #4009 from andrewbaptist/fix_eof_linebytes
...
Match GNU semantics for missing EOF
2022-10-17 16:23:20 +02:00
Sylvestre Ledru
480f36fa41
Merge pull request #4055 from niyaznigmatullin/bump_bstr-1.0.1
...
Bump bstr 1.0.1
2022-10-17 16:22:48 +02:00
Niyaz Nigmatullin
3e907e0c06
Fix usage of for_byte_record_with_terminator
from bstr
2022-10-17 11:00:23 +03:00
dependabot[bot]
e48125fc9c
build(deps): bump bstr from 0.2.17 to 1.0.1
...
Bumps [bstr](https://github.com/BurntSushi/bstr ) from 0.2.17 to 1.0.1.
- [Release notes](https://github.com/BurntSushi/bstr/releases )
- [Commits](https://github.com/BurntSushi/bstr/compare/0.2.17...1.0.1 )
---
updated-dependencies:
- dependency-name: bstr
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-10-17 10:58:56 +03:00
Sylvestre Ledru
15dc0aa6e7
Merge pull request #4052 from tertsdiepraam/docs-fix-usage-since-clap-4
...
docs: fix usage string since clap 4
2022-10-17 08:39:39 +02:00
Sylvestre Ledru
2b27925d6a
Merge pull request #4053 from niyaznigmatullin/cargo_update
...
`cargo +1.60.0 update`
2022-10-17 08:39:24 +02:00
Niyaz Nigmatullin
277e3d17a1
tests: change error messages for wrong arguments
...
Clap used `"` for argument values, now uses `'`.
2022-10-16 19:28:04 +03:00
Niyaz Nigmatullin
39edd16c9f
deps: cargo +1.60.0 update
2022-10-16 16:52:55 +03:00