29 Commits

Author SHA1 Message Date
oech3 ab328d170e coreutils: fix panic on linux < 6.4 when /proc is not mounted (#12104) 2026-05-16 22:12:43 +02:00
Daniel Hofstetter 10e3a9c3b8 tests,stdbuf: adapt to change in ctor 2026-05-07 09:44:53 +02:00
oech3 36265cb9ee coreutils: --help args is same with --help 2026-04-20 23:05:29 +02:00
oech3 b6c5dd1325 coreutils: Protect against env -a for security (#10773)
This prevents an attacker from spoofing argv[0] to bypass apparmor restrictions.

- `env -a false ls` now correctly runs `ls` instead of dispatching as `false`
- Also works under masked `/proc` (does not rely on /proc/self/exe).

Closes #10135
2026-04-05 00:45:42 +02:00
oech3 ec7e81e6ae Add regression test for coreutils --list (#10858) 2026-02-10 09:32:10 -08:00
oech3 4854ba692e tests/misc/coreutils.sh: Fail with invalid binary name (#10258) 2026-02-04 22:11:52 +01:00
✿ Fleur de Blue 2a2cafdbd4 Re-enable unused_qualifications lint (#10571) 2026-02-03 21:55:21 +01:00
oech3 28576decc1 coreutils: Print utility not found to stderr 2025-12-07 18:02:20 +09:00
Aaron Ang 2919027841 uudoc: move manpage generation away from the binary 2025-10-22 01:17:08 -07:00
Etienne Cordonnier e722250e7d link musl libc statically
In the context of musl, users are typically expecting statically-linked tools,
as this is one of musl's strong suits and one of the biggest reasons to use it
instead of glibc (that is not static-link-friendly for reasons).

- remove the build-flag which was causing musl libc to be linked dynamically
- re-add feat_os_unix_musl which was removed in https://github.com/uutils/coreutils/commit/21d5cef15308c018bcb0b34fcbdff47a24aa9fa6
- exclude stdbuf from feat_os_unix_musl, since libstdbuf.so can't be built with a statically linked musl libc
- add test_musl_no_dynamic_deps so that this does not regress in the future

Fixes https://github.com/uutils/coreutils/issues/8572

Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
2025-09-09 12:53:32 +02:00
Sylvestre Ledru d76a8d1b14 clap localization: address PR review comments
- Make colorize() function private since only used internally
  - Remove redundant colors_enabled checks
  - Add apply_color helper closure to reduce code duplication
  - Remove try_ prefix from function names for consistency
  - Update all utilities to use renamed functions
  - Fix app variable reference in mv utility
2025-08-13 14:15:55 +02:00
Dorian Peron 365f6a36fa test_util_name: ignore sort tests 2025-07-25 13:51:53 +02:00
MarcusGrass 6ea6e8cbb4 fix: Add test for main binary version information output 2025-06-10 20:36:17 +02:00
Sylvestre Ledru d9f0868a45 l10n: Adjust a test, I don't think we need to full path with 'usage' 2025-06-04 19:24:03 +02:00
Daniel Hofstetter 7f8ad6a32c Merge pull request #7688 from nyurik/fmt-inline
chore: use inline formatting
2025-04-08 09:31:17 +02:00
Yuri Astrakhan 3dc771924c chore: cleanup trailing commas before parens
Deleted commas in cases like `foo,)` -- mostly in macros
2025-04-08 00:33:58 -04:00
Yuri Astrakhan 47b10539d0 chore: use inline formatting
Minor cleanup using clippy autofix.  This makes the code a bit more readable, and helps spot a few inefficiencies and possible bugs.

```
cargo clippy --fix --workspace -- -A clippy::all -W clippy::uninlined_format_args && cargo fmt
```
2025-04-07 22:56:21 -04:00
Sylvestre Ledru 50fe623447 Create the uutest crate + adjust the code
+ move some of the tests into the program test
2025-03-28 21:40:31 +01:00
Sylvestre Ledru a85539f530 Run cargo fmt on the tree 2025-03-24 21:33:12 +01:00
sreehari prasad c2505841e0 Tests: provides easy mount of temp fs (#7249) 2025-02-01 19:01:49 +01:00
Sylvestre Ledru 09e53f3d2d tests: fix some clippy warnings 2024-05-25 09:06:16 +02:00
Ben Wiederhake d5b79329ad tests: fix multi-call test precondition
This bug was introduced in de37baaf83.
2024-04-27 16:12:01 +02:00
Ben Wiederhake de37baaf83 tests: test multi-call logic
Thankfully, this revealed no bugs. Let's prevent regressions!
2024-04-07 01:35:57 +02:00
Sylvestre Ledru bfca6bf70f Add license headers on all files 2023-08-21 10:49:27 +02:00
Niyaz Nigmatullin fdd6a05259 chore: run cargo +nightly clippy --fix 2022-11-16 11:09:44 +02:00