1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-08-01 21:47:46 +00:00
Commit graph

15884 commits

Author SHA1 Message Date
Sylvestre Ledru
71af6d2089 selinux/uucore: add two functions: contexts_differ & preserve_security_context 2025-05-21 09:51:27 +02:00
Sylvestre Ledru
eff2cd997e
Create an uufuzz crate for common functions and use it (#7954)
* uufuzz: create a crate with the common functions

* uufuzz: move the fuzz-common functions

* uufuzz: polish the crate

* adjust the fuzzer to use uufuzz
2025-05-21 09:26:59 +02:00
Sylvestre Ledru
a9e259369b
Merge pull request #7963 from cakebaker/revert_7944
Revert #7944
2025-05-20 17:44:58 +02:00
Daniel Hofstetter
5ead081bb3 Revert #7944 as some CI jobs fail
with "unrecognized command line option '-std=gnu17'"
2025-05-20 17:26:38 +02:00
Daniel Hofstetter
147027022a
Merge pull request #7940 from Qelxiros/7671-timeout-tests
timeout: add hex parsing test
2025-05-20 10:39:56 +02:00
Sylvestre Ledru
263ba63203
Merge pull request #7959 from cakebaker/ci_install_libselinux1_dev
ci: install `libselinux1-dev` for coverage job
2025-05-20 09:56:25 +02:00
Sylvestre Ledru
a7b005c5e3
Merge pull request #7942 from cakebaker/sync_move_function_call_to_unsafe_block
sync: move call to unsafe fn to unsafe block
2025-05-20 09:44:48 +02:00
Sylvestre Ledru
0c7a5d25f2
Merge pull request #7943 from cakebaker/du_fix_never_used_warning_in_test
du: fix "function never used" warning in test
2025-05-20 09:44:33 +02:00
Sylvestre Ledru
a29fd4a171
Merge pull request #7956 from Qelxiros/6175-env-empty-string
docs: env doesn't handle the empty string as a variable name
2025-05-20 09:37:53 +02:00
Sylvestre Ledru
d094e72934
Merge pull request #7962 from cakebaker/mv_remove_unnecessary_result
mv: use `bool` instead of `Result` as return type
2025-05-20 09:34:54 +02:00
Sylvestre Ledru
4fd11ab6c3
Merge pull request #7944 from cakebaker/cargo_config_set_cflags
.cargo/config.toml: set `CFLAGS='-std=gnu17'`
2025-05-20 09:34:28 +02:00
Daniel Hofstetter
dde7324e3f mv: use bool instead of Result as return type
for can_delete_file function
2025-05-20 07:31:57 +02:00
Dorian Péron
b2b4eb9027
Merge pull request #7960 from cakebaker/ci_fix_unexpected_input_warning
ci: fix `unexpected input 'file'` warning in coverage job
2025-05-19 18:23:46 +02:00
Daniel Hofstetter
3c406b877b ci: fix "unexpected input 'file'" warning
in code coverage job
2025-05-19 17:00:16 +02:00
Daniel Hofstetter
baa70d8e2c ci: install libselinux1-dev for coverage job 2025-05-19 16:32:46 +02:00
Daniel Hofstetter
be9ee14aab
Merge pull request #7938 from sylvestre/no-ctx
cp: context Disable a check in tests/cp/no-ctx.sh
2025-05-19 16:19:51 +02:00
Sylvestre Ledru
3712ece70b
performance.md: recommend to build with the right profile (#7930)
* performance.md: recommend to build with the right profile

* doc: also update the paths
2025-05-19 16:01:25 +02:00
Sylvestre Ledru
9858c209c3
Merge pull request #7958 from cakebaker/ci_run_fmt_on_fuzz
ci: run `cargo fmt --check` in `fuzz` folder
2025-05-19 14:56:57 +02:00
Daniel Hofstetter
04ca61dce4 ci: run "cargo fmt --check" in fuzz folder 2025-05-19 14:38:07 +02:00
Sylvestre Ledru
a538816799
Merge pull request #7949 from BenWiederhake/dev-fmt-all
Run cargo fmt on missed files
2025-05-19 14:37:02 +02:00
Jeremy Smart
384878b5df add timeout test for hex parsing 2025-05-19 11:18:18 +02:00
Daniel Hofstetter
cdca6d6a8d sync: move call to unsafe fn to unsafe block 2025-05-19 11:18:12 +02:00
Daniel Hofstetter
7f70bfad30 du: fix "function never used" warning in test 2025-05-19 11:18:02 +02:00
Daniel Hofstetter
992e16221c .cargo/config.toml: set CFLAGS='-std=gnu17'
to make onig compile with GCC 15, which by default uses a newer C
standard (C23)
2025-05-19 11:17:59 +02:00
Ben Wiederhake
5a8fad8443 shred: implement and test feature --random-source 2025-05-19 11:17:55 +02:00
Ben Wiederhake
0011b6e3f7 run cargo fmt on missed files
It seems these files were missed by CI. Command to run cargo fmt on
absolutely *everything* (and possibly too much)

find tests -name "*.rs" -print0 | xargs -0 cargo fmt --
2025-05-19 11:17:46 +02:00
Sylvestre Ledru
3848e6c271
Merge branch 'main' into 6175-env-empty-string 2025-05-19 11:03:02 +02:00
Sylvestre Ledru
6a828f0e74
Merge pull request #7957 from cakebaker/clippy_set_msrv_and_fix_warnings
clippy: set MSRV and fix warnings
2025-05-19 11:02:34 +02:00
Daniel Hofstetter
ee665fbebe more: fix warning from let_and_return lint 2025-05-19 10:08:40 +02:00
Daniel Hofstetter
8674e86703 cp: fix warnings from unnecessary_debug_formatting
Co-authored-by: Jeremy Smart <jeremy3141592@gmail.com>
2025-05-19 09:54:37 +02:00
Daniel Hofstetter
7a706b5756 mv: fix warning from io_other_error lint
Co-authored-by: Jeremy Smart <jeremy3141592@gmail.com>
2025-05-19 09:27:36 +02:00
Daniel Hofstetter
4d44afcd87 clippy: set MSRV to 1.85 2025-05-19 09:22:38 +02:00
Sylvestre Ledru
9fbb6aca3c
Merge pull request #7765 from aaron-ang/more-mem-constant
more: constant memory initialization overhead
2025-05-19 09:14:04 +02:00
Jeremy Smart
696dd3c0cd
remove information about implementation details 2025-05-18 17:08:05 -04:00
Jeremy Smart
dc2942a769
Merge branch 'main' into 6175-env-empty-string 2025-05-18 16:56:11 -04:00
Jeremy Smart
d9e8244e02
Update docs/src/extensions.md
Co-authored-by: Sylvestre Ledru <sylvestre@debian.org>
2025-05-18 20:55:49 +00:00
Jeremy Smart
8b210cf204
docs: env doesn't handle the empty string as a variable name 2025-05-18 15:50:47 -04:00
Aaron Ang
c8c4f525a2 test_more: use at_and_ucmd helper macro 2025-05-18 21:09:48 +02:00
Aaron Ang
7692b93ea6 more: constant mem initialization for files and pipes 2025-05-18 21:09:48 +02:00
Daniel Hofstetter
438ed3c6c6 doc: fix warnings from markdown linter 2025-05-18 21:08:27 +02:00
Daniel Hofstetter
aec2eeac05 ci: bump markdownlint-cli2-action from v19 to v20 2025-05-18 21:08:27 +02:00
Daniel Hofstetter
1e476d9749 ci: remove trailing spaces at line end 2025-05-18 21:08:27 +02:00
Jeremy Smart
a5a9f7d44d
pr: migrate from quick-error to thiserror (#7919)
* remove quick-error from pr

* fix windows compilation, Cargo.toml
2025-05-15 09:19:46 +02:00
Sylvestre Ledru
5e11842428
Merge pull request #7932 from cakebaker/ls_remove_duplicate_code
ls: remove duplicate code
2025-05-15 09:19:16 +02:00
Sylvestre Ledru
19cd210ac3 cp: context Disable a check in tests/cp/no-ctx.sh
It is not relevant for us:
* the selinux crate is handling errors
* the test says "maybe we should not fail when no context available"
2025-05-15 09:06:37 +02:00
Sylvestre Ledru
c76c0ad2dd
Merge pull request #7934 from drinkcat/wc-faster
wc: Speed optimization
2025-05-15 08:44:50 +02:00
Daniel Hofstetter
d7d0a3385b
Merge pull request #7935 from uutils/renovate/zip-3.x
chore(deps): update rust crate zip to v3
2025-05-15 07:15:22 +02:00
renovate[bot]
3566f88874
chore(deps): update rust crate zip to v3 2025-05-15 03:50:17 +00:00
Nicolas Boichat
1fc14d837c wc: Align buffer to 32-byte boundary
bytecount uses vector operations to speed up line counting.
At least on x86 with AVX2 support, the vectors are 256-byte wide,
and operations are much faster if the data is aligned.

Saves about 4% of total performance, matching wc's performance.
2025-05-15 05:03:08 +02:00
Nicolas Boichat
1fe539f1d4 wc: Increase buffer size to 256kb
Improves performance by about 4% on large files.
2025-05-15 05:02:27 +02:00