Commit graph

16605 commits

Author SHA1 Message Date
Alexander Bakanovskii
59bf18fd00
tests/pinky: add --lookup test 2025-09-19 16:21:09 +03:00
Alexander Bakanovskii
9e3871c6c5
pinky: add --lookup flag 2025-09-19 15:08:24 +03:00
Sylvestre Ledru
aaf742dcbe
Merge pull request #8645 from cakebaker/uucore_checksum_simplify_create_sha3
Some checks failed
Devcontainer / Verify devcontainer (push) Has been cancelled
FreeBSD / Style and Lint (push) Has been cancelled
FreeBSD / Tests (push) Has been cancelled
Android / Test builds (push) Has been cancelled
Code Quality / Style/format (push) Has been cancelled
CICD / Style/cargo-deny (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 / Dependencies (push) Has been cancelled
CICD / Code Coverage (push) Has been cancelled
CICD / Separate Builds (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/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
Code Quality / Pre-commit hooks (push) Has been cancelled
WSL2 / Test (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 / Build/SELinux (push) Has been cancelled
GnuTests / Aggregate GNU test results (push) Has been cancelled
CICD / Test all features separately (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
uucore/checksum: improve API of `create_sha3()`
2025-09-16 22:12:36 +02:00
Daniel Hofstetter
f4b76382e2
Merge pull request #8648 from uutils/renovate/clap_complete-4.x-lockfile
Some checks are pending
CICD / Build (push) Blocked by required conditions
CICD / Style/cargo-deny (push) Waiting to run
CICD / Style/deps (push) Waiting to run
CICD / Test all features separately (push) Blocked by required conditions
CICD / Documentation/warnings (push) Waiting to run
CICD / MinRustV (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 / 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 / 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/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
chore(deps): update rust crate clap_complete to v4.5.58
2025-09-16 08:05:51 +02:00
Daniel Hofstetter
18b2a60383
Merge pull request #8649 from uutils/renovate/serde-monorepo
chore(deps): update rust crate serde to v1.0.225
2025-09-16 07:59:07 +02:00
renovate[bot]
ec197d90ce
chore(deps): update rust crate serde to v1.0.225 2025-09-16 05:12:58 +00:00
renovate[bot]
4ea7ba2e49
chore(deps): update rust crate clap_complete to v4.5.58 2025-09-16 05:12:52 +00:00
Daniel Hofstetter
368e514272
Merge pull request #8646 from uutils/renovate/serde-monorepo
chore(deps): update rust crate serde to v1.0.224
2025-09-16 07:11:17 +02:00
renovate[bot]
ff362c18ed
chore(deps): update rust crate serde to v1.0.224 2025-09-15 17:52:24 +00:00
Daniel Hofstetter
68d3e5f4e1 uucore/checksum: improve API of create_sha3()
expect usize instead of Option<usize> as param
2025-09-15 17:31:25 +02:00
Sylvestre Ledru
c54400900e
Merge pull request #8643 from RenjiSann/perf-cksum
Some checks failed
CICD / Build/stable (push) Blocked by required conditions
CICD / Style/cargo-deny (push) Waiting to run
CICD / Style/deps (push) Waiting to run
CICD / Documentation/warnings (push) Waiting to run
CICD / MinRustV (push) Waiting to run
CICD / Dependencies (push) Waiting to run
CICD / Build/nightly (push) Blocked by required conditions
CICD / Binary sizes (push) Blocked by required conditions
Devcontainer / Verify devcontainer (push) Waiting to run
FreeBSD / Style and Lint (push) Waiting to run
WSL2 / Test (push) Waiting to run
CICD / Build/Makefile (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
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/toml (push) Waiting to run
Code Quality / Style/Python (push) Waiting to run
Code Quality / Pre-commit hooks (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
FreeBSD / Tests (push) Waiting to run
Check uudoc Documentation Generation / Verify uudoc generates correct documentation (push) Has been cancelled
cksum: improve performance (Closes: #8573)
2025-09-15 17:29:18 +02:00
Daniel Hofstetter
e48961546a
Merge pull request #8640 from sylvestre/perms
Some checks are pending
CICD / Build (push) Blocked by required conditions
CICD / Style/cargo-deny (push) Waiting to run
CICD / Style/deps (push) Waiting to run
CICD / Test all features separately (push) Blocked by required conditions
CICD / Documentation/warnings (push) Waiting to run
CICD / MinRustV (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 / 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 / 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/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
make install: ressource files should have 644 as permissions. Closes: #8638
2025-09-15 16:39:42 +02:00
Dorian Peron
2c5409bdf2 cksum: Use crc_fast::Digest on the fly to improve performances 2025-09-15 15:24:43 +02:00
Sylvestre Ledru
80327e0dd0
Merge pull request #8602 from cakebaker/touch_simplify_some_tests
touch: simplify some tests by using `new_ucmd!()`
2025-09-15 11:56:32 +02:00
Sylvestre Ledru
b3d71e3c88 cksum: improve performance (Closes: #8573) 2025-09-15 11:37:30 +02:00
Sylvestre Ledru
7b0d7dc5e6 gh/action: fix a test as we changed the permissions on the files 2025-09-15 11:33:12 +02:00
Sylvestre Ledru
1cd939ac55 make install: ressource files should have 644 as permissions. Closes: #8638 2025-09-15 10:01:38 +02:00
Sylvestre Ledru
d71ab035a5
uucore/selinux: add support for translations (#8628)
Some checks are pending
CICD / Build (push) Blocked by required conditions
CICD / Style/cargo-deny (push) Waiting to run
CICD / Style/deps (push) Waiting to run
CICD / Documentation/warnings (push) Waiting to run
CICD / MinRustV (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 / 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
GnuTests / Aggregate GNU test results (push) Blocked by required conditions
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
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
2025-09-15 08:15:59 +02:00
Daniel Hofstetter
a6d782fd05
Merge pull request #8641 from maxfilov/main
Replace casting to Ioctl with a const from libc
2025-09-15 07:50:20 +02:00
Daniel Hofstetter
485bad91d8
Merge pull request #8642 from uutils/renovate/serde-monorepo
chore(deps): update rust crate serde to v1.0.223
2025-09-15 07:20:27 +02:00
renovate[bot]
ec778b2885
chore(deps): update rust crate serde to v1.0.223 2025-09-15 02:15:48 +00:00
Maksim Panfilov
61ac193286 Replace casting to Ioctl with a const from libc 2025-09-14 23:57:00 +02:00
Sylvestre Ledru
efe0774265
Merge pull request #8639 from uutils/renovate/serde-monorepo
Some checks are pending
CICD / Code Coverage (push) Waiting to run
CICD / Test all features separately (push) Blocked by required conditions
CICD / Style/cargo-deny (push) Waiting to run
CICD / Style/deps (push) Waiting to run
CICD / Build/SELinux (push) Blocked by required conditions
CICD / Documentation/warnings (push) Waiting to run
CICD / MinRustV (push) Waiting to run
CICD / Dependencies (push) Waiting to run
CICD / Build/nightly (push) Blocked by required conditions
CICD / Build/Makefile (push) Blocked by required conditions
CICD / Build/stable (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 / Separate Builds (push) Waiting to run
Code Quality / Pre-commit hooks (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
FreeBSD / Tests (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
Code Quality / Style/format (push) Waiting to run
Code Quality / Style/lint (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
chore(deps): update rust crate serde to v1.0.222
2025-09-14 22:19:14 +02:00
Sylvestre Ledru
8c31f39f8c
Merge pull request #8637 from maxfilov/main
cp: fix Ioctl casting for ppc64 (Closes: #8161)
2025-09-14 22:18:52 +02:00
Maksim Panfilov
666b3b3852 cp: fix Ioctl casting for ppc64 (Closes: #8161) 2025-09-14 21:15:09 +02:00
renovate[bot]
7eba726587
chore(deps): update rust crate serde to v1.0.222 2025-09-14 18:44:35 +00:00
Sylvestre Ledru
88622805b4
Merge pull request #8636 from cakebaker/uucore_checksum_use_error_variants
uucore/checksum: use `ChecksumError` variants
2025-09-14 20:42:59 +02:00
Daniel Hofstetter
919bfc512e uucore/checksum: use ChecksumError variants
instead of USimpleError
2025-09-14 17:42:22 +02:00
Daniel Hofstetter
aa42a02459
Merge pull request #8606 from sylvestre/expr-multibyte
Some checks are pending
Android / Test builds (push) Waiting to run
CICD / Style/cargo-deny (push) Waiting to run
CICD / Build (push) Blocked by required conditions
CICD / Style/deps (push) Waiting to run
CICD / Documentation/warnings (push) Waiting to run
CICD / MinRustV (push) Waiting to run
CICD / Test all features separately (push) Blocked by required conditions
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 / 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 / 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
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
WSL2 / Test (push) Waiting to run
FreeBSD / Tests (push) Waiting to run
expr: fix some multibyte issues
2025-09-14 15:30:12 +02:00
Sylvestre Ledru
5e974797bd
Document the security process (#8633)
* Document the security process

Closes: #8553

* Update SECURITY.md

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>

* Update SECURITY.md

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>

---------

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2025-09-14 13:56:20 +02:00
Sylvestre Ledru
08299c0888
Merge pull request #8630 from yuankunzhang/date-display-file-mtime
date: use --reference=file to display the file modification time
2025-09-14 10:29:52 +02:00
Daniel Hofstetter
48d058fe37
Merge pull request #8635 from uutils/renovate/serde-monorepo
chore(deps): update rust crate serde to v1.0.221
2025-09-14 10:26:19 +02:00
renovate[bot]
141c7d61fd
chore(deps): update rust crate serde to v1.0.221 2025-09-14 01:40:48 +00:00
Sylvestre Ledru
091db2babc expr: fix some multibyte issues and refactor a bit
Should make tests/expr/expr-multibyte pass

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2025-09-14 01:12:57 +02:00
Sylvestre Ledru
7ca62d620e
Merge pull request #8631 from cakebaker/du_some_small_refactorings
Some checks are pending
CICD / Style/cargo-deny (push) Waiting to run
CICD / Style/deps (push) Waiting to run
CICD / Documentation/warnings (push) Waiting to run
CICD / MinRustV (push) Waiting to run
CICD / Dependencies (push) Waiting to run
CICD / Build/nightly (push) Blocked by required conditions
CICD / Build/Makefile (push) Blocked by required conditions
CICD / Build/stable (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
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/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
du: some small refactorings
2025-09-13 18:10:01 +02:00
Daniel Hofstetter
227a9a9a54
Merge pull request #8626 from sylvestre/traversal5
safe traversal: use the nix crate instead of unsafe calls to libc
2025-09-13 17:44:13 +02:00
Daniel Hofstetter
e76afc9bd3 du: simplify two if/else constructs 2025-09-13 17:08:16 +02:00
yuankunzhang
88a7fa7adf date: use --reference=file to display the file modification time 2025-09-13 22:23:33 +08:00
Daniel Hofstetter
d3af6fd529 du: remove condition with identical if/else blocks 2025-09-13 16:07:09 +02:00
Daniel Hofstetter
def1bb2b87 du: simplify signature of Stat::new_from_dirfd 2025-09-13 16:02:19 +02:00
yuankunzhang
bca02e45f2 date: consolidate date parsing logic
Removed the `parse_offset` function and rely on `parse_date` only.
2025-09-13 21:13:37 +08:00
Alen Antony
83574316e7
od: fix options after filename issue (#8624)
Some checks failed
CICD / Documentation/warnings (push) Waiting to run
CICD / MinRustV (push) Waiting to run
CICD / Dependencies (push) Waiting to run
CICD / Build/Makefile (push) Blocked by required conditions
CICD / Tests/BusyBox test suite (push) Blocked by required conditions
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
CICD / Test all features separately (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/Toybox test suite (push) Blocked by required conditions
CICD / Code Coverage (push) Waiting to run
CICD / Separate Builds (push) Waiting to run
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
FreeBSD / 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
* od: fix options after filename issue

* fix cspell issue
2025-09-12 17:37:13 +02:00
Sylvestre Ledru
ee462a585a safe traversal: add support for translations 2025-09-12 17:36:08 +02:00
Sylvestre Ledru
8fc888ebed safe traversal: use the nix crate instead of unsafe calls to libc 2025-09-12 17:36:08 +02:00
Sylvestre Ledru
2bb097ba7b
Merge pull request #8627 from cakebaker/uucore_safe_traversal_refactoring
uucore/safe_traversal: remove unnecessary vars
2025-09-12 17:29:08 +02:00
Daniel Hofstetter
38ab20b268 uucore/safe_traversal: remove unnecessary cfg 2025-09-12 16:56:24 +02:00
Daniel Hofstetter
6464355688 uucore/safe_traversal: remove unnecessary vars
and use into_owned() instead of to_string()
2025-09-12 16:42:54 +02:00
Daniel Hofstetter
61aec2c195 uucore/safe_traversal: adapt file header 2025-09-12 16:23:19 +02:00
Daniel Hofstetter
0c3f958896
Merge pull request #8517 from sylvestre/traversal2
Adjust rm & du to use safe traversal (openat, unlinkat, etc)
2025-09-12 16:09:02 +02:00
Sylvestre Ledru
a7a5126af5 Improve the tests 2025-09-12 14:23:03 +02:00