Commit Graph

16777 Commits

Author SHA1 Message Date
Sylvestre Ledru d4e47861bb add a github check for programs not using traversal 2025-10-06 13:57:50 +02:00
Sylvestre Ledru e4b86542d6 safe-traversal is always used on linux, adjust the cfg 2025-10-06 13:53:05 +02:00
Sylvestre Ledru 0e484200d2 chmod: on linux use the safe traversal functions 2025-10-06 13:53:05 +02:00
Sylvestre Ledru 1b74e7d2aa Merge pull request #8831 from cakebaker/ci_fix_cicd_workflow
ci: fix broken CICD workflow
2025-10-06 12:00:29 +02:00
Daniel Hofstetter 98f617a29c ci: fix "a sequence was not expected" error
in the CICD workflow
2025-10-06 11:31:44 +02:00
Sylvestre Ledru 137b2ce960 Merge pull request #8822 from cakebaker/unexpand_remove_unnecessary_condition
unexpand: remove unnecessary condition
2025-10-05 17:55:54 +02:00
Sylvestre Ledru 8b6613782b Merge pull request #8810 from oech3/ln
Allow to replace ln -fs and hardlink on Windows by default
2025-10-05 17:45:52 +02:00
Daniel Hofstetter 658e0d8796 unexpand: remove unnecessary condition 2025-10-05 17:04:33 +02:00
Sylvestre Ledru 5e076fe5cf Merge pull request #8821 from cakebaker/uucore_parse_time_very_small_number
uucore/parse_time: return 1ns for small numbers
2025-10-05 17:03:48 +02:00
Daniel Hofstetter af27562af9 Merge pull request #8815 from sylvestre/perf-unexpand
unexpand: improve performances (1.50 faster than GNU)
2025-10-05 16:52:05 +02:00
Daniel Hofstetter c05aca85ed uucore/parse_time: return 1ns for small numbers 2025-10-05 15:54:51 +02:00
E 788bf9259e Document how to generate prefixed completions (#8817)
* Document how to generate prefixed completions
2025-10-05 15:13:03 +02:00
Sylvestre Ledru 687716cab3 unexpand: improve performances 2025-10-05 15:10:40 +02:00
Cả thế giới là Rust 02312bfffd fix: Gate SELinux to Linux and add cross-platform CI tests (#8795)
Gate SELinux functionality to Linux-only and provide stub implementations
for chcon/runcon on non-Linux platforms to maintain cross-platform builds.

Changes:
- Gate all SELinux code with target_os = "linux" checks
- Add stub main() for chcon/runcon on non-Linux with user-friendly errors
- Add CI job to verify stubs build correctly on macOS and Windows
- Update ls to check both selinux feature AND target_os

Benefits:
- Fixes build failures on macOS/Windows (#8581, #7996, #7695, #6491)
- Maintains workspace buildability across all platforms
- Provides clear error messages instead of silent failures
- Prevents accidental SELinux usage on unsupported platforms

CI Testing:
- New 'Build/SELinux-Stubs (Non-Linux)' job tests macOS and Windows
- Verifies stub binaries are created and compilation succeeds
- Validates full workspace builds with stubs present

Addresses maintainer feedback in PR #8795
2025-10-05 14:23:59 +02:00
AnarchistHoneybun e16ce60a38 basenc: implement --base58 encoding option (#8751)
* basenc: implement --base58 encoding option

Add support for Base58 encoding to basenc as per GNU coreutils 9.8.
Base58 uses the alphabet '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'
which excludes visually ambiguous characters (0, O, I, l).

Resolves issue #8744.

* basenc: fix clippy warnings and spelling issues

Fix explicit iteration clippy warnings. Add Base58 alphabet to spell-checker ignore list to resolve cspell errors.
2025-10-05 14:03:45 +02:00
Daniel Hofstetter c0cdd904b8 Merge pull request #8803 from sylvestre/expand-perf
expand: improve the performances - 1.80 faster than GNU
2025-10-05 13:57:56 +02:00
Daniel Hofstetter d7fb7b71d7 Merge pull request #8811 from sylvestre/perf-nl
nl: improve the performances
2025-10-05 13:47:15 +02:00
Sylvestre Ledru 17ddf290ed unexpand: add a benchmark (#8813) 2025-10-05 13:06:32 +02:00
Sylvestre Ledru 8d12700cd3 unexpand: add a benchmark 2025-10-05 11:50:47 +02:00
Sylvestre Ledru fb5f4d8c28 expand: improve the performances - 1.80 faster than GNU 2025-10-05 10:27:46 +02:00
Cả thế giới là Rust f86061076b tests(tee): Add GNU-compat write-error and broken-pipe tests (#4627) (#8797)
Add comprehensive test coverage for tee --output-error and broken pipe behavior:

- test_output_error_flag_without_value_defaults_warn_nopipe: Verify default behavior
- test_output_error_presence_only_broken_pipe_unix: Non-crash on SIGPIPE
- test_broken_pipe_early_termination_stdout_only: Early termination robustness
- test_write_failure_reports_error_and_nonzero_exit: Error reporting validation

These tests address remaining gaps from GNU test suite tests/misc/tee.sh and
tests/misc/write-errors.sh highlighted in #4627. Platform-specific guards
(#[cfg(unix)], FreeBSD exclusion) ensure cross-platform compatibility.
2025-10-04 21:20:54 +02:00
E 0fc825bcb9 Add test for LN=
Add test for make LN="ln -svf" and make LN="ln -vf"
2025-10-05 01:02:08 +09:00
mattsu 013a385789 feat(cp): optimize directory copy by caching file checks and refactoring calls (#8805)
* feat: optimize directory copy by caching file checks and refactoring calls

- Add `target_is_file` field to Context to avoid repeated `stat` calls on target
- Refactor `copy_direntry` to accept `&Entry` and additional bool params for symlink/directory handling
- Use cached value and local variables for cleaner access to entry properties
- Pass `created_parent_dirs` to `copy_file` for improved directory creation tracking

This reduces filesystem overhead in cp operations when copying directories.
2025-10-04 17:14:09 +02:00
Sylvestre Ledru 8ec28bbd32 nl: improve the performances 2025-10-04 17:00:04 +02:00
Daniel Hofstetter 94b6544561 Merge pull request #8806 from Misakait/fix/reference-stdin
fix(ptx): Correct reference format for stdin
2025-10-04 16:04:39 +02:00