Commit graph

17055 commits

Author SHA1 Message Date
Daniel Hofstetter
ca6d69a520
Merge pull request #9063 from RenjiSann/cksum-fix-tests
Some checks failed
CICD / Style/cargo-deny (push) Has been cancelled
Android / Test builds (push) Has been cancelled
CICD / Dependencies (push) Has been cancelled
CICD / Style/deps (push) Has been cancelled
CICD / Documentation/warnings (push) Has been cancelled
CICD / MinRustV (push) Has been cancelled
CICD / Code Coverage (push) Has been cancelled
CICD / Separate Builds (push) Has been cancelled
Benchmarks / Run benchmarks (CodSpeed) (push) Has been cancelled
Code Quality / Pre-commit hooks (push) Has been cancelled
WSL2 / Test (push) Has been cancelled
GnuTests / Run GNU tests (native) (push) Has been cancelled
GnuTests / Run GNU tests (SELinux) (push) Has been cancelled
Code Quality / Style/format (push) Has been cancelled
Code Quality / Style/lint (push) Has been cancelled
Code Quality / Style/spelling (push) Has been cancelled
Code Quality / Style/toml (push) Has been cancelled
Code Quality / Style/Python (push) Has been cancelled
CICD / Build/Makefile (push) Has been cancelled
CICD / Build/stable (push) Has been cancelled
CICD / Build/nightly (push) Has been cancelled
CICD / Binary sizes (push) Has been cancelled
CICD / Build (push) Has been cancelled
CICD / Tests/BusyBox test suite (push) Has been cancelled
CICD / Tests/Toybox test suite (push) Has been cancelled
CICD / Test all features separately (push) Has been cancelled
CICD / Build/SELinux (push) Has been cancelled
CICD / Build/SELinux-Stubs (Non-Linux) (push) Has been cancelled
CICD / Safe Traversal Security Check (push) Has been cancelled
GnuTests / Aggregate GNU test results (push) Has been cancelled
cksum: Fix GNU `cksum-c.sh` and `cksum-sha3.sh`
2025-10-28 16:55:25 +01:00
E
130bbf5729 GNUmakefile: Reduce deps & minor cleanup 2025-10-28 12:16:47 +00:00
Sylvestre Ledru
5c5494a8b7
Merge pull request #8737 from Nekrolm/tsort-no-recursion
tsort: use iterative dfs to prevent stack overflows and improve performances
2025-10-28 12:10:49 +01:00
Dorian Peron
e57902f5df util(cksum): Fix gnu cksum-sha3.sh 2025-10-28 11:59:47 +01:00
Nekrolm
1244caf024 tsort: use iterative dfs to avoid crashes on stack overflow 2025-10-28 11:31:32 +01:00
Dorian Peron
e41c842c4f util(cksum): simple refactors 2025-10-28 03:26:04 +01:00
Dorian Peron
69ce42c3cb test(cksum): add tests for --length, refactor tests 2025-10-28 03:06:19 +01:00
Dorian Peron
a95633e520 util(cksum): Fix gnu cksum-c.sh 2025-10-28 01:29:07 +01:00
Sylvestre Ledru
c85d8b5ed3
Merge pull request #9016 from naoNao89/fix/dd-oflag-direct-isolated
Some checks are pending
CICD / MinRustV (push) Waiting to run
CICD / Separate Builds (push) Waiting to run
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
WSL2 / Test (push) Waiting to run
fix(dd): handle O_DIRECT partial block writes
2025-10-27 23:31:53 +01:00
Sylvestre Ledru
09a85149ab
Merge pull request #9051 from oech3/quiet-locale
GNUmakefile: Do not use install -v
2025-10-27 23:13:57 +01:00
Sylvestre Ledru
b5b8c28b4d
Merge pull request #9055 from akretz/fix-ls-acl
ls: use file path for ACL check
2025-10-27 23:13:19 +01:00
Sylvestre Ledru
76c4278f38
Merge pull request #9048 from cakebaker/date_remove_chrono
date: remove `chrono`
2025-10-27 23:13:04 +01:00
Sylvestre Ledru
0ca7a3d810
Merge pull request #9058 from akretz/chown-wheel-group
Fix chown tests for FreeBSD and macOS
2025-10-27 22:21:56 +01:00
Adrian Kretz
a58b1bea55 test/ls: add test to verify ACL from different dir 2025-10-27 21:46:34 +01:00
Sylvestre Ledru
67ef669af3
Merge pull request #9054 from cakebaker/ci_remove_lima_actions_ssh
ci: remove deprecated `lima-actions/ssh`
2025-10-27 21:44:04 +01:00
Daniel Hofstetter
c19cab6153 date: sort deps in Cargo.toml alphabetically 2025-10-27 21:41:28 +01:00
Daniel Hofstetter
15cecc933f date: remove chrono from Cargo.toml 2025-10-27 21:41:28 +01:00
Sylvestre Ledru
46042c552b
Merge pull request #9049 from oech3/dotbash
Append .bash to completions
2025-10-27 21:39:28 +01:00
Adrian Kretz
4a2890a07c test/chown: don't chown if user is in wheel group 2025-10-27 20:36:31 +01:00
Adrian Kretz
aa59afd112 ls: use file path for ACL check 2025-10-27 20:18:46 +01:00
Adrian Kretz
ce90685e8a test/chown: use wheel group on BSD 2025-10-27 19:35:31 +01:00
Daniel Hofstetter
9d03a80de8
Merge pull request #9053 from uutils/renovate/indicatif-0.x-lockfile
Some checks are pending
CICD / Documentation/warnings (push) Waiting to run
CICD / MinRustV (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 / 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
WSL2 / Test (push) Waiting to run
FreeBSD / Tests (push) Waiting to run
chore(deps): update rust crate indicatif to v0.18.2
2025-10-27 17:19:48 +01:00
Daniel Hofstetter
90925b260f ci: remove deprecated lima-actions/ssh 2025-10-27 17:01:34 +01:00
renovate[bot]
4be30d5a93
chore(deps): update rust crate indicatif to v0.18.2 2025-10-27 15:50:43 +00:00
E
eb78b6c34b
GNUmakefile: Do not use install -v
This mixes `cargo`'s log and `install's log and no reason to use `-v`.
2025-10-28 00:03:23 +09:00
E
c97cd29d3e
Append .bash to completions 2025-10-27 21:19:37 +09:00
Daniel Hofstetter
870bc29cb4
Merge pull request #9022 from sylvestre/test-ignored-date
date: improve compat with GNU
2025-10-27 11:40:01 +01:00
Sylvestre Ledru
0be1ac88c4
Merge pull request #9035 from RenjiSann/cksum-fix-sha2-sha3
Some checks failed
Check uudoc Documentation Generation / Verify uudoc generates correct documentation (push) Has been cancelled
CICD / Separate Builds (push) Waiting to run
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 / Code Coverage (push) Waiting to run
CICD / Tests/Toybox test suite (push) Blocked by required conditions
CICD / Safe Traversal Security Check (push) Blocked by required conditions
CICD / Build/SELinux-Stubs (Non-Linux) (push) Blocked by required conditions
GnuTests / Run GNU tests (SELinux) (push) Waiting to run
CICD / Test all features separately (push) Blocked by required conditions
CICD / Build/SELinux (push) Blocked by required conditions
GnuTests / Run GNU tests (native) (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
FreeBSD / Style and Lint (push) Waiting to run
FreeBSD / Tests (push) Waiting to run
WSL2 / Test (push) Waiting to run
cksum: Add support for sha2, sha3
2025-10-27 10:59:27 +01:00
Sylvestre Ledru
d87a5b88a3 date: support(Military timezone with optional hour offset 2025-10-27 10:31:01 +01:00
Sylvestre Ledru
5cae9ae53e date: -d empty string should be treated as midnight today 2025-10-27 10:31:01 +01:00
Sylvestre Ledru
284554658d date: add support for the 'J' military timezone 2025-10-27 10:30:43 +01:00
Dorian Péron
6cf658c310
README: Fix coverage badge URL (#9046) 2025-10-27 10:27:35 +01:00
Sylvestre Ledru
b17129d8ee date: add ignored tests that passes with GNU and fails with Rust 2025-10-27 10:02:35 +01:00
Daniel Hofstetter
df23bda721
ci: remove code_format job from FixPR workflow (#9043) 2025-10-27 09:21:33 +01:00
n4n5
85c92f2684
cut,touch: show ignored args (#9040) 2025-10-27 08:32:01 +01:00
n4n5
cbe20c9bff
date: make --utc alias visible (#9041) 2025-10-27 08:12:54 +01:00
renovate[bot]
3b2cb6af32 chore(deps): update rust crate bstr to v1.12.1
Some checks are pending
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 / Code Coverage (push) Waiting to run
CICD / Separate Builds (push) Waiting to run
CICD / MinRustV (push) Waiting to run
CICD / Dependencies (push) Waiting to run
CICD / Binary sizes (push) Blocked by required conditions
CICD / Build (push) Blocked by required conditions
CICD / Tests/Toybox test suite (push) Blocked by required conditions
CICD / Test all features separately (push) Blocked by required conditions
CICD / Build/SELinux (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
Code Quality / Style/format (push) Waiting to run
Code Quality / Style/lint (push) Waiting to run
Code Quality / Style/toml (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
CICD / Build/SELinux-Stubs (Non-Linux) (push) Blocked by required conditions
CICD / Safe Traversal Security Check (push) Blocked by required conditions
Benchmarks / Run benchmarks (CodSpeed) (push) Waiting to run
Code Quality / Style/spelling (push) Waiting to run
Code Quality / Style/Python (push) Waiting to run
Code Quality / Pre-commit hooks (push) Waiting to run
WSL2 / Test (push) Waiting to run
2025-10-26 23:11:53 +01:00
Sylvestre Ledru
c2488a474e Fix spell-checker directive for IST timezone entry 2025-10-26 22:09:02 +01:00
Sylvestre Ledru
b818481e5f date: fix parse_datetime 0.13 API compatibility issues 2025-10-26 22:09:02 +01:00
naoNao89
f764be8ddf touch: fix parse_datetime 0.13 API usage for deterministic relative dates
The previous implementation incorrectly used parse_datetime() instead of
parse_datetime_at_date(), causing relative date strings like 'yesterday' or
'2 days ago' to be calculated from the current system time instead of the
caller-specified reference time.

This fix:
- Uses parse_datetime_at_date() with proper chrono->jiff->chrono conversions
- Restores deterministic behavior for relative date parsing
- Adds jiff 0.2.15 as direct dependency (not workspace) to avoid feature conflicts
- Ensures tests/touch/relative passes in CI

Note on jiff dependency:
parse_datetime 0.13 depends on jiff ^0.2.15 with specific features. Adding jiff
via workspace dependency causes feature unification conflicts across platforms.
Using a direct dependency with version 0.2.15 resolves this while maintaining
compatibility with parse_datetime's requirements.
2025-10-26 22:09:02 +01:00
naoNao89
f4b66479f0 date, touch: adapt to parse_datetime 0.13.0 API changes
Fixes #8754

parse_datetime 0.13.0 fixes the bug where parsing large second values
like "12345.123456789 seconds ago" would fail with "invalid date".

However, parse_datetime 0.13.0 introduced a breaking API change:
- Old (0.11.0): Returns chrono::DateTime
- New (0.13.0): Returns jiff::Zoned

This commit adapts both date and touch utilities to work with the new API:

date.rs changes:
- Simplified parse_date() to directly return jiff::Zoned
- Removed unnecessary chrono -> jiff conversion code
- parse_datetime now returns the exact type date utility uses
- Added detailed comments explaining the API change and issue #8754

touch.rs changes:
- Added jiff::Zoned -> chrono::DateTime conversion in parse_date()
- Changed from parse_datetime_at_date to parse_datetime
- Marked ref_time parameter as unused (preserved for future use)
- Added detailed comments about API change and future migration path

Note: 3 integration tests fail due to timezone handling changes in
parse_datetime 0.13. These are separate issues that will be addressed
in follow-up commits.
2025-10-26 22:09:02 +01:00
renovate[bot]
4e605cc510 chore(deps): update rust crate parse_datetime to 0.13.0 2025-10-26 22:09:02 +01:00
Dorian Peron
3d8ad59b30 test(cksum): Add sha3 tests 2025-10-26 20:18:14 +01:00
Dorian Peron
87f61423af test(cksum): Add sha2 tests 2025-10-26 20:18:14 +01:00
Dorian Peron
7aa46dd9c7 test(cksum): nits on tests 2025-10-26 20:18:14 +01:00
Dorian Peron
dfda5e0d91 util(cksum): Add support for sha2 and sha3 2025-10-26 20:18:14 +01:00
E
8f6e7201fa
GNUmakefile: Don't install part of hashsum if we excluded hashsum (#9036)
Some checks are pending
CICD / Dependencies (push) Waiting to run
CICD / Build/stable (push) Blocked by required conditions
CICD / Separate Builds (push) Waiting to run
CICD / Build/Makefile (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 / Safe Traversal Security Check (push) Blocked by required conditions
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
GnuTests / Run GNU tests (native) (push) Waiting to run
Android / Test builds (push) Waiting to run
CICD / Tests/Toybox test suite (push) Blocked by required conditions
GnuTests / Run GNU tests (SELinux) (push) Waiting to run
GnuTests / Aggregate GNU test results (push) Blocked by required conditions
CICD / Code Coverage (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
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
WSL2 / Test (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
FreeBSD / Tests (push) Waiting to run
* Clear HASHSUM_PROGS

* Drop wrong endif

* Fix cspell

* Flip wrong ifeq
2025-10-26 17:23:44 +01:00
Daniel Hofstetter
a00d3478e3
Merge pull request #9032 from RenjiSann/cksum-fix-len-zero
Fix "cksum: --length 0 shouldn't fail for algorithms that don't support --length"
2025-10-26 16:39:52 +01:00
Daniel Hofstetter
28bc57a589
Merge pull request #9030 from sylvestre/remove-bench
bench: remove 'sort_random_strings'
2025-10-26 14:45:44 +01:00
Dorian Peron
4e9d07e86c util(cksum): Fix unexpected fail when giving --length 0 to wrong algorithm 2025-10-26 14:32:20 +01:00