Commit graph

17585 commits

Author SHA1 Message Date
nirv
6caf207883
Merge 78b5b5ff9e into e70c5a4408 2025-12-23 12:48:05 +05:30
Daniel Hofstetter
e70c5a4408
Merge pull request #9786 from uutils/renovate/divan-4.x-lockfile
chore(deps): update rust crate divan to v4.2.0
2025-12-23 08:07:40 +01:00
Daniel Hofstetter
52b388a3ff
Merge pull request #9787 from uutils/renovate/linux-raw-sys-0.x-lockfile
chore(deps): update rust crate linux-raw-sys to v0.12.1
2025-12-23 07:05:59 +01:00
AnarchistHoneybun
78b5b5ff9e tests: use at_and_ucmd macro and remove redundant cfg guards 2025-12-23 08:50:08 +05:30
nirv
afedc0774c
Merge branch 'main' into bug/cp-preserve-xattr-9704 2025-12-23 08:45:54 +05:30
renovate[bot]
21ced9df0b
chore(deps): update rust crate linux-raw-sys to v0.12.1 2025-12-23 02:03:46 +00:00
renovate[bot]
f3135ca1c8
chore(deps): update rust crate divan to v4.2.0 2025-12-22 22:07:09 +00:00
Daniel Hofstetter
836e5d19c4
Merge pull request #9770 from RenjiSann/checksum-improvements
Some checks failed
CICD / Binary sizes (push) Blocked by required conditions
CICD / Build (push) Blocked by required conditions
CICD / Tests/BusyBox test suite (push) Blocked by required conditions
CICD / Separate Builds (push) Waiting to run
CICD / Test all features separately (push) Blocked by required conditions
CICD / Build/SELinux (push) Blocked by required conditions
CICD / Build/SELinux-Stubs (Non-Linux) (push) Blocked by required conditions
CICD / Safe Traversal Security Check (push) Blocked by required conditions
CheckScripts / ShellScript/Check (push) Waiting to run
GnuTests / Aggregate GNU test results (push) Blocked by required conditions
CICD / Tests/Toybox test suite (push) Blocked by required conditions
CICD / Code Coverage (push) Waiting to run
CheckScripts / ShellScript/Format (push) Waiting to run
GnuTests / Run GNU tests (native) (push) Waiting to run
GnuTests / Run GNU tests (SELinux) (push) Waiting to run
Android / Test builds (push) Waiting to run
Benchmarks / Run benchmarks (CodSpeed) (push) Waiting to run
Code Quality / Style/format (push) Waiting to run
Code Quality / Style/lint (push) Waiting to run
Code Quality / Style/spelling (push) Waiting to run
Code Quality / Style/toml (push) Waiting to run
Code Quality / Style/Python (push) Waiting to run
Code Quality / Pre-commit hooks (push) Waiting to run
Devcontainer / Verify devcontainer (push) Waiting to run
FreeBSD / Style and Lint (push) Waiting to run
FreeBSD / Tests (push) Waiting to run
OpenBSD / Style and Lint (push) Waiting to run
OpenBSD / Tests (push) Waiting to run
WSL2 / Test (push) Waiting to run
Check uudoc Documentation Generation / Verify uudoc generates correct documentation (push) Has been cancelled
checksum: Improve check-only flags handling
2025-12-22 15:58:11 +01:00
Dorian Peron
74f12d5d3b cksum: remove unneeded hex dependency 2025-12-22 14:41:41 +01:00
Christopher Dryden
0fbc17c2dd clap_localization: return error instead of calling exit() for fuzzer compatibility 2025-12-22 14:14:09 +01:00
Sylvestre Ledru
54102d7cfd date fuzzer: should pass in the CI 2025-12-22 14:14:09 +01:00
Sylvestre Ledru
fb5b5f4849 date: improve the date fuzzer 2025-12-22 14:14:09 +01:00
Sylvestre Ledru
6df86206a8 date: handle unknown options gracefully 2025-12-22 14:14:09 +01:00
Sylvestre Ledru
055ba74126 date: allow extra operand 2025-12-22 14:14:09 +01:00
Sylvestre Ledru
58266a890a date: handle the empty arguments 2025-12-22 14:14:09 +01:00
Dorian Péron
0bfbbc00c7
Fix printenv non-UTF8 (#9728)
* printenv: Handle invalid UTF-8 encoding in variables

* test(printenv): Add test for non-UTF8 content in variable
2025-12-22 14:12:38 +01:00
oech3
b9b965555c
GNUmakefile: Prepend PROG_PREFIX to LIBSTDBUF_DIR too (#9068)
* GNUmakefile: Append PROG_PREFIX to LIBSTDBUF_DIR too

* GNUmakefile: FIx woording

Co-authored-by: Etienne Cordonnier <ecordonnier@snap.com>

---------

Co-authored-by: Etienne Cordonnier <ecordonnier@snap.com>
2025-12-22 12:42:29 +01:00
Dorian Peron
d96ae60d21 checksum: Unify the handling of check-only flags 2025-12-22 11:16:14 +01:00
Daniel Hofstetter
87ba3afd19
Merge pull request #9317 from sylvestre/shred-passes
shred: ensure deterministic pass sequence compatibility with reference implementation
2025-12-22 11:14:39 +01:00
oech3
2b67abe741
hashsum: Drop --no-names (#9762)
Co-authored-by: oech3 <>
2025-12-22 10:17:28 +01:00
oech3
aacbeb5828
build-gnu.sh: Enable test/df/no-mtab-status.sh (#9759)
* build-gnu.sh: Enable test/df/no-mtab-status.sh

* Document why no-mtab-status.sh fails
2025-12-22 10:04:51 +01:00
Kornél Csernai
eed7a0aca7
parser: add binary support to determine_number_system and parse_size (#9659)
* parser: add binary support to determine_number_system and parse_size

* docs

* tests

* tests: threshold
2025-12-22 09:24:44 +01:00
oech3
a738fbaa43
GnuTests.yml: Discard caches at each build-gnu.sh update (#9753)
Some checks are pending
CICD / Dependencies (push) Waiting to run
CICD / Build/Makefile (push) Blocked by required conditions
CICD / Build/stable (push) Blocked by required conditions
CICD / Build/nightly (push) Blocked by required conditions
CICD / Binary sizes (push) Blocked by required conditions
CICD / Build (push) Blocked by required conditions
CICD / Tests/BusyBox test suite (push) Blocked by required conditions
CICD / Tests/Toybox test suite (push) Blocked by required conditions
CICD / Code Coverage (push) Waiting to run
CICD / Test all features separately (push) Blocked by required conditions
CICD / Build/SELinux (push) Blocked by required conditions
CICD / Build/SELinux-Stubs (Non-Linux) (push) Blocked by required conditions
CICD / Safe Traversal Security Check (push) Blocked by required conditions
GnuTests / Run GNU tests (native) (push) Waiting to run
GnuTests / Run GNU tests (SELinux) (push) Waiting to run
GnuTests / Aggregate GNU test results (push) Blocked by required conditions
Android / Test builds (push) Waiting to run
Benchmarks / Run benchmarks (CodSpeed) (push) Waiting to run
Code Quality / Style/Python (push) Waiting to run
Code Quality / Style/format (push) Waiting to run
Code Quality / Style/lint (push) Waiting to run
Code Quality / Style/spelling (push) Waiting to run
Code Quality / Style/toml (push) Waiting to run
Code Quality / Pre-commit hooks (push) Waiting to run
Devcontainer / Verify devcontainer (push) Waiting to run
FreeBSD / Style and Lint (push) Waiting to run
FreeBSD / Tests (push) Waiting to run
OpenBSD / Style and Lint (push) Waiting to run
OpenBSD / Tests (push) Waiting to run
WSL2 / Test (push) Waiting to run
* GnuTests.yml: Discard caches at each build-gnu.sh update

* Fix typo

---------

Co-authored-by: oech3 <>
2025-12-21 18:34:24 +01:00
Daniel Hofstetter
79f09a62f0
Merge pull request #9695 from RenjiSann/checksum-ignore-binary
Some checks are pending
CICD / Build/Makefile (push) Blocked by required conditions
CICD / Build/stable (push) Blocked by required conditions
CICD / Build/nightly (push) Blocked by required conditions
CICD / Binary sizes (push) Blocked by required conditions
CICD / Build (push) Blocked by required conditions
CICD / Tests/BusyBox test suite (push) Blocked by required conditions
CICD / Tests/Toybox test suite (push) Blocked by required conditions
CICD / Code Coverage (push) Waiting to run
CICD / Test all features separately (push) Blocked by required conditions
CICD / Build/SELinux (push) Blocked by required conditions
CICD / Build/SELinux-Stubs (Non-Linux) (push) Blocked by required conditions
CICD / Safe Traversal Security Check (push) Blocked by required conditions
GnuTests / Run GNU tests (native) (push) Waiting to run
GnuTests / Run GNU tests (SELinux) (push) Waiting to run
GnuTests / Aggregate GNU test results (push) Blocked by required conditions
Android / Test builds (push) Waiting to run
Benchmarks / Run benchmarks (CodSpeed) (push) Waiting to run
Code Quality / Style/format (push) Waiting to run
Code Quality / Style/lint (push) Waiting to run
Code Quality / Style/spelling (push) Waiting to run
Code Quality / Style/toml (push) Waiting to run
Code Quality / Style/Python (push) Waiting to run
Code Quality / Pre-commit hooks (push) Waiting to run
Devcontainer / Verify devcontainer (push) Waiting to run
Check uudoc Documentation Generation / Verify uudoc generates correct documentation (push) Waiting to run
FreeBSD / Style and Lint (push) Waiting to run
FreeBSD / Tests (push) Waiting to run
OpenBSD / Style and Lint (push) Waiting to run
OpenBSD / Tests (push) Waiting to run
WSL2 / Test (push) Waiting to run
Checksum ignore binary
2025-12-21 16:14:24 +01:00
Daniel Hofstetter
7c7f1fc47c
Merge pull request #9727 from sylvestre/dup
Consolidate legacy argument parsing for head/tail
2025-12-21 15:32:52 +01:00
Mahdi Ali-Raihan
7da2a2dd8b
cat: do not connect to unix domain socket and instead return an error (#9755)
* cat: do not connect to unix domain socket and instead return an error. fixed #9751

* added empty line to fr-FR.ftl

* made NoSuchDeviceOrAddress error unix specific
2025-12-21 14:54:38 +01:00
nirv
f7969d7f82
Merge branch 'main' into bug/cp-preserve-xattr-9704 2025-12-21 15:13:48 +05:30
RustyJack
939ab037a2
uucore: use --suffix to enable backup mode (#9741) 2025-12-21 10:17:35 +01:00
Sylvestre Ledru
ac487dee94 Consolidate legacy argument parsing for head/tail 2025-12-21 10:04:09 +01:00
Sylvestre Ledru
7305e5191e
opnbsd isn't supported 2025-12-21 09:36:58 +01:00
AnarchistHoneybun
f0366d3949 cp: preserve ACL xattrs with -p while excluding others
implement granular xattr handling to preserve ACLs with -p but not general xattrs
2025-12-21 10:40:38 +05:30
nirv
92b4ec2b67
Merge branch 'main' into bug/cp-preserve-xattr-9704 2025-12-21 10:26:37 +05:30
David
1fca82965d
dd: should terminate with error if skip argument is too large (#7275)
Some checks failed
CICD / Build/nightly (push) Blocked by required conditions
CICD / Binary sizes (push) Blocked by required conditions
CICD / Build (push) Blocked by required conditions
CICD / Tests/BusyBox test suite (push) Blocked by required conditions
CICD / Tests/Toybox test suite (push) Blocked by required conditions
CICD / Code Coverage (push) Waiting to run
CICD / Separate Builds (push) Waiting to run
CICD / Test all features separately (push) Blocked by required conditions
CICD / Build/SELinux (push) Blocked by required conditions
CICD / Build/SELinux-Stubs (Non-Linux) (push) Blocked by required conditions
CICD / Safe Traversal Security Check (push) Blocked by required conditions
GnuTests / Run GNU tests (native) (push) Waiting to run
GnuTests / Run GNU tests (SELinux) (push) Waiting to run
GnuTests / Aggregate GNU test results (push) Blocked by required conditions
Android / Test builds (push) Waiting to run
Benchmarks / Run benchmarks (CodSpeed) (push) Waiting to run
Code Quality / Style/Python (push) Waiting to run
Code Quality / Style/format (push) Waiting to run
Code Quality / Style/lint (push) Waiting to run
Code Quality / Style/spelling (push) Waiting to run
Code Quality / Style/toml (push) Waiting to run
Code Quality / Pre-commit hooks (push) Waiting to run
Devcontainer / Verify devcontainer (push) Waiting to run
FreeBSD / Style and Lint (push) Waiting to run
FreeBSD / Tests (push) Waiting to run
OpenBSD / Style and Lint (push) Waiting to run
OpenBSD / Tests (push) Waiting to run
WSL2 / Test (push) Waiting to run
CheckScripts / ShellScript/Check (push) Has been cancelled
CheckScripts / ShellScript/Format (push) Has been cancelled
fixed clippy warning
2025-12-20 19:04:12 +01:00
oech3
2081e8a4dc
build-gnu.sh: Don't force-enable tests (#9744)
Co-authored-by: oech3 <>
2025-12-20 18:18:50 +01:00
Daniel Hofstetter
ebaae2e2d5
Merge pull request #9726 from ChrisDryden/env-non-utf8
env: preserve non-UTF-8 environment variables and remove unwrap
2025-12-20 16:38:45 +01:00
Dorian Peron
34c41dfc6b checksum: drop "text" checksum computation on windows 2025-12-20 15:38:04 +01:00
Dorian Péron
4401eb1205
Merge pull request #9739 from oech3/patch-1
Some checks are pending
CICD / Build/stable (push) Blocked by required conditions
CICD / Build/nightly (push) Blocked by required conditions
CICD / Binary sizes (push) Blocked by required conditions
CICD / Build (push) Blocked by required conditions
CICD / Tests/BusyBox test suite (push) Blocked by required conditions
CICD / Tests/Toybox test suite (push) Blocked by required conditions
CICD / Code Coverage (push) Waiting to run
CICD / Test all features separately (push) Blocked by required conditions
CICD / Build/SELinux (push) Blocked by required conditions
CICD / Build/SELinux-Stubs (Non-Linux) (push) Blocked by required conditions
CICD / Safe Traversal Security Check (push) Blocked by required conditions
CheckScripts / ShellScript/Check (push) Waiting to run
CheckScripts / ShellScript/Format (push) Waiting to run
GnuTests / Run GNU tests (native) (push) Waiting to run
GnuTests / Run GNU tests (SELinux) (push) Waiting to run
GnuTests / Aggregate GNU test results (push) Blocked by required conditions
Android / Test builds (push) Waiting to run
Benchmarks / Run benchmarks (CodSpeed) (push) Waiting to run
Code Quality / Style/Python (push) Waiting to run
Code Quality / Style/format (push) Waiting to run
Code Quality / Style/lint (push) Waiting to run
Code Quality / Style/spelling (push) Waiting to run
Code Quality / Style/toml (push) Waiting to run
Code Quality / Pre-commit hooks (push) Waiting to run
Devcontainer / Verify devcontainer (push) Waiting to run
FreeBSD / Style and Lint (push) Waiting to run
FreeBSD / Tests (push) Waiting to run
OpenBSD / Style and Lint (push) Waiting to run
OpenBSD / Tests (push) Waiting to run
WSL2 / Test (push) Waiting to run
GnuTests.yml: Fix caches
2025-12-20 13:45:44 +01:00
nirv
628e18da0a
Merge branch 'main' into bug/cp-preserve-xattr-9704 2025-12-20 17:06:07 +05:30
Sylvestre Ledru
2e3a1adb25 shred: use RefCell to eliminate mut from random source handling 2025-12-20 11:23:53 +01:00
oech3
ca93f678f0
GnuTests.yml: Fix caches 2025-12-20 19:19:34 +09:00
Sylvestre Ledru
ceb2551250 shred: remove the extension section 2025-12-20 11:18:31 +01:00
Sylvestre Ledru
dd21d7f6dd shred: ensure deterministic pass sequence compatibility with reference implementation
should fix tests/shred/shred-passes.sh
2025-12-20 11:18:28 +01:00
oech3
ef496b697a
build-gnu.sh: Move {ch,run}con tests to SELinux VM to avoid wrong result by false symlinks (#9607) 2025-12-20 11:10:43 +01:00
oech3
c53895a25e
why-error.md: Cleanup (#9738) 2025-12-20 11:07:40 +01:00
oech3
33e803665a
run-gnu-test.sh: Fix nproc broken by cache (#9735) 2025-12-20 10:41:57 +01:00
mattsu
ccd4bbdc8f
fix(sort): GNU sort-continue.sh test (#9107)
* feat: dynamically adjust merge batch size based on file descriptor limits

- Add `effective_merge_batch_size()` function to calculate batch size considering fd soft limit, with minimums and safety margins.
- Generalize fd limit handling from Linux-only to Unix systems using `fd_soft_limit()`.
- Update merge logic to use dynamic batch size instead of fixed `settings.merge_batch_size` to prevent fd exhaustion.

* fix(sort): update rlimit fetching to use fd_soft_limit with error handling

Replace direct call to get_rlimit()? with fd_soft_limit(), adding a check for None value to return a usage error if rlimit cannot be fetched. This improves robustness on Linux by ensuring proper error handling when retrieving the file descriptor soft limit.

* refactor(sort): restrict nix::libc and fd_soft_limit to Linux

Update conditional compilation attributes from #[cfg(unix)] to #[cfg(target_os = "linux")]
for the nix::libc import and fd_soft_limit function implementations, ensuring these
features are only enabled on Linux systems to improve portability and avoid issues
on other Unix-like platforms.

* refactor: improve thread management and replace unsafe libc calls

Replace unsafe libc::getrlimit calls in fd_soft_limit with safe nix crate usage.
Update Rayon thread configuration to use ThreadPoolBuilder instead of environment variables for better control.
Add documentation comment to effective_merge_batch_size function for clarity.

* refactor(linux): improve error handling in fd_soft_limit function

Extract the rlimit fetching logic into a separate `get_rlimit` function that returns `UResult<usize>` and properly handles errors with `UUsageError`, instead of silently returning `None` on failure or infinity. This provides better error reporting for resource limit issues on Linux platforms.

* refactor(sort): reorder imports in get_rlimit for consistency

Reordered the nix::sys::resource imports to group constants first (RLIM_INFINITY), then types (Resource), and finally functions (getrlimit), improving code readability and adhering to import style guidelines.
2025-12-20 09:35:53 +01:00
Daniel Hofstetter
1044809bdf
Merge pull request #9730 from uutils/renovate/crc-fast-1.x-lockfile
Some checks failed
CICD / Build/Makefile (push) Blocked by required conditions
CICD / Build/stable (push) Blocked by required conditions
CICD / Tests/BusyBox test suite (push) Blocked by required conditions
CICD / Tests/Toybox test suite (push) Blocked by required conditions
CICD / Code Coverage (push) Waiting to run
CICD / Separate Builds (push) Waiting to run
CICD / Test all features separately (push) Blocked by required conditions
CICD / Build/SELinux (push) Blocked by required conditions
CICD / Build/SELinux-Stubs (Non-Linux) (push) Blocked by required conditions
CICD / Safe Traversal Security Check (push) Blocked by required conditions
CheckScripts / ShellScript/Check (push) Waiting to run
CheckScripts / ShellScript/Format (push) Waiting to run
GnuTests / Run GNU tests (native) (push) Waiting to run
GnuTests / Run GNU tests (SELinux) (push) Waiting to run
GnuTests / Aggregate GNU test results (push) Blocked by required conditions
Android / Test builds (push) Waiting to run
Benchmarks / Run benchmarks (CodSpeed) (push) Waiting to run
Code Quality / Style/Python (push) Waiting to run
Code Quality / Style/format (push) Waiting to run
Code Quality / Style/lint (push) Waiting to run
Code Quality / Style/spelling (push) Waiting to run
Code Quality / Style/toml (push) Waiting to run
Code Quality / Pre-commit hooks (push) Waiting to run
Devcontainer / Verify devcontainer (push) Waiting to run
FreeBSD / Style and Lint (push) Waiting to run
FreeBSD / Tests (push) Waiting to run
OpenBSD / Style and Lint (push) Waiting to run
OpenBSD / Tests (push) Waiting to run
WSL2 / Test (push) Waiting to run
Check uudoc Documentation Generation / Verify uudoc generates correct documentation (push) Has been cancelled
chore(deps): update rust crate crc-fast to v1.8.2
2025-12-20 07:15:46 +01:00
Daniel Hofstetter
dba7c4a6da
Merge pull request #9731 from uutils/renovate/zip-7.x
chore(deps): update rust crate zip to v7
2025-12-20 07:11:44 +01:00
nirv
b0d6c49630
Merge branch 'main' into bug/cp-preserve-xattr-9704 2025-12-20 09:27:22 +05:30
renovate[bot]
86b0695908
chore(deps): update rust crate zip to v7 2025-12-20 02:42:52 +00:00