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
Sylvestre Ledru
3642d5e9c5
du: silent a gnu test as it can't happen on our side
2025-09-12 14:22:33 +02:00
Sylvestre Ledru
1183529cd2
rm: port to use the safe io functions
2025-09-12 14:22:33 +02:00
Sylvestre Ledru
c890a3479a
du: port to use the safe io functions
2025-09-12 14:22:33 +02:00
Sylvestre Ledru
82d9371ed3
uucore: add linux function to manage safe traversal (openat, unlinkat, etc)
2025-09-12 12:08:19 +02:00
Daniel Hofstetter
c7b02d6bfa
Merge pull request #8623 from uutils/renovate/actions-checkout-5.x
...
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
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
Code Quality / Style/toml (push) Waiting to run
Code Quality / Style/Python (push) Waiting to run
Code Quality / Style/format (push) Waiting to run
Code Quality / Pre-commit hooks (push) Waiting to run
Code Quality / Style/lint (push) Waiting to run
Code Quality / Style/spelling (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
Check uudoc Documentation Generation / Verify uudoc generates correct documentation (push) Has been cancelled
chore(deps): update actions/checkout action to v5
2025-09-12 10:51:43 +02:00
renovate[bot]
00dc334621
chore(deps): update actions/checkout action to v5
2025-09-12 08:15:17 +00:00
Daniel Hofstetter
ac2fbabb54
Merge pull request #8610 from sylvestre/rm_uuhelp
...
Fix the doc generation and remove uuhelp_parser
2025-09-12 10:01:42 +02:00
Daniel Hofstetter
24550663b9
Merge pull request #8620 from dev-4hmad/grammar-fix
...
docs: minor grammar fix in packaging.md
2025-09-12 08:08:26 +02:00
Muhammad Ahmad
471dce5275
docs: minor grammar fix in packaging.md
2025-09-12 10:57:23 +05:00
Sylvestre Ledru
0f77a5be18
Merge pull request #8595 from Ecordonnier/eco/systemd_logind_arm
...
CICD / Test all features separately (push) Blocked by required conditions
CICD / Build/stable (push) Blocked by required conditions
CICD / Style/cargo-deny (push) Waiting to run
CICD / Style/deps (push) Waiting to run
CICD / Build (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/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/toml (push) Waiting to run
Code Quality / Style/format (push) Waiting to run
Code Quality / Style/Python (push) Waiting to run
Code Quality / Style/lint (push) Waiting to run
Code Quality / Style/spelling (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
systemd_logind: replace i8 with libc::c_char
2025-09-11 23:34:16 +02:00
Sylvestre Ledru
d08a32bca5
Merge pull request #8616 from uutils/renovate/zip-5.x-lockfile
...
chore(deps): update rust crate zip to v5.1.1
2025-09-11 23:32:49 +02:00
Sylvestre Ledru
28dde64d7e
github action: add a check that uudoc works
2025-09-11 22:46:12 +02:00
Sylvestre Ledru
6cc245db01
Fix the doc generation and remove uuhelp_parser
2025-09-11 21:30:33 +02:00
renovate[bot]
debfa9e43e
chore(deps): update rust crate zip to v5.1.1
2025-09-11 19:08:48 +00:00
Sylvestre Ledru
a1884599f7
Merge pull request #8612 from cakebaker/bump_fts_sys
...
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 / 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 / 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
Bump `fts-sys` and `selinux-sys`
2025-09-11 20:35:01 +02:00
Sylvestre Ledru
56b1dd445b
Merge pull request #8613 from cakebaker/bump_rustix
...
Bump `rustix` from `1.0.7` to `1.1.2`
2025-09-11 20:17:44 +02:00
Sylvestre Ledru
9e1ba2fefd
Merge pull request #8587 from ThePseudo/input_reuse_b64
...
Input reuse on base64
2025-09-11 20:17:02 +02:00
Daniel Hofstetter
c53b5dc26c
deny.toml: remove linux-raw-sys from skip list
2025-09-11 16:01:12 +02:00
Daniel Hofstetter
b13dbaeb1f
Bump rustix from 1.0.7 to 1.1.2
2025-09-11 15:57:31 +02:00
Daniel Hofstetter
3e68f95365
Bump fts-sys and selinux-sys
...
fts-sys from 0.2.16 to 0.2.17 and selinux-sys from 0.6.14 to 0.6.15
2025-09-11 15:27:30 +02:00
Daniel Hofstetter
d6d5e63459
Merge pull request #8609 from uutils/renovate/zip-5.x-lockfile
...
CICD / Style/deps (push) Waiting to run
CICD / Style/cargo-deny (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/toml (push) Waiting to run
Code Quality / Style/format (push) Waiting to run
Code Quality / Style/Python (push) Waiting to run
Code Quality / Style/lint (push) Waiting to run
Code Quality / Style/spelling (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 zip to v5.1.0
2025-09-11 07:08:56 +02:00
renovate[bot]
61cab64209
chore(deps): update rust crate zip to v5.1.0
2025-09-10 20:14:10 +00:00
Daniel Hofstetter
280ef280b8
Merge pull request #8597 from uutils/renovate/zip-5.x-lockfile
...
Code Quality / Style/format (push) Waiting to run
CICD / Style/deps (push) Waiting to run
CICD / Style/cargo-deny (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 / 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/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/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 / Tests (push) Waiting to run
WSL2 / Test (push) Waiting to run
FreeBSD / Style and Lint (push) Waiting to run
chore(deps): update rust crate zip to v5.0.1
2025-09-10 17:01:00 +02:00
renovate[bot]
8a981f28c2
chore(deps): update rust crate zip to v5.0.1
2025-09-10 14:40:23 +00:00
Daniel Hofstetter
9ff8273054
Merge pull request #8589 from yuankunzhang/mv-to-symlink-directory
...
mv: support moving source to a symlink directory
2025-09-10 16:09:07 +02:00
Daniel Hofstetter
2e083a8596
Merge pull request #8598 from zdiff/main
...
Remove additional touch when feat_common_core is required
2025-09-10 15:07:03 +02:00
Andrea Calabrese
f953ccecef
base_common: fast_decode improvements
...
This is the follow-up commit to the improvement of fast_encode and the
reuse of the read file. What is written there is still valid.
Signed-off-by: Andrea Calabrese <andrea.calabrese@amarulasolutions.com>
2025-09-10 11:19:05 +02:00
Andrea Calabrese
f39f2a769a
base_common: re-using input from has_padding
...
Base64: the function has_padding reads the file and then discards it.
The functions fast_encode and fast_decode re-read the file, providing
significant delay in larger files.
This commit also reduces the amount of computation done inside the
fast_decode function.
In the next commit there will be the fix for the fast_decode function
Signed-off-by: Andrea Calabrese <andrea.calabrese@amarulasolutions.com>
2025-09-10 11:19:05 +02:00
zdiff
8c78abe505
Remove additional touch when feat_common_core is required
2025-09-10 11:17:32 +02:00
Ahmad
4cf521be49
docs: fix minor grammar errors in extensions.md ( #8596 )
...
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
* Fix minor grammar errors in extensions.md
* Fix minor grammar errors in extensions.md
2025-09-10 11:12:26 +02:00
Sylvestre Ledru
96400de5f4
Merge pull request #8599 from cakebaker/touch_adapt_test_on_windows
...
touch: adapt expected error message in test
2025-09-10 10:50:38 +02:00
Daniel Hofstetter
74ee8fb1c1
touch: adapt expected error message in test
2025-09-10 10:20:04 +02:00
Etienne Cordonnier
f5b5a3dec5
systemd_logind: replace i8 with libc::c_char
...
The C type "char" defaults to unsigned on arm linux, and signed on x86-64 linux. This causes some build errors in the systemd_logind ffi code when compiling for arm.
Fixes https://github.com/uutils/coreutils/issues/8593
Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
2025-09-10 10:00:45 +02:00
Daniel Hofstetter
bb5d73e1b8
Merge pull request #8590 from uutils/renovate/tempfile-3.x-lockfile
...
fix(deps): update rust crate tempfile to v3.22.0
2025-09-10 07:15:02 +02:00
Sylvestre Ledru
3a07ffc5a9
Merge pull request #8588 from sylvestre/0.2.2
...
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
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 / Pre-commit hooks (push) Waiting to run
Code Quality / Style/format (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/SELinux (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
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
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
CheckScripts / ShellScript/Format (push) Has been cancelled
CheckScripts / ShellScript/Check (push) Has been cancelled
Prepare version 0.2.2
2025-09-09 21:38:42 +02:00
renovate[bot]
602c408102
fix(deps): update rust crate tempfile to v3.22.0
2025-09-09 18:02:59 +00:00
Sylvestre Ledru
fa06ce7eca
Prepare release 0.2.2
2025-09-09 18:33:50 +02:00
Sylvestre Ledru
bfba19f222
also publish uufuzz
2025-09-09 18:33:50 +02:00
yuankunzhang
62ae994b55
mv: support moving source to a symlink directory
2025-09-09 20:06:44 +08:00
Sylvestre Ledru
5c33a30eec
Merge pull request #8585 from Ecordonnier/eco/musl-libc-fix
...
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
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
Code Quality / Style/lint (push) Waiting to run
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
Code Quality / Style/format (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
link musl libc statically
2025-09-09 13:27:18 +02: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 21d5cef153
- 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
1bed017978
Merge pull request #8584 from cakebaker/uucore_build_rename_fn
...
uucore/build.rs: rename function
2025-09-09 11:34:56 +02:00
Daniel Hofstetter
ac646e40fa
uucore/build.rs: rename function
...
from embed_all_utilities_locales to embed_all_utility_locales
2025-09-09 11:05:13 +02:00