Commit Graph

19269 Commits

Author SHA1 Message Date
Sylvestre Ledru 9aadcbf5aa Update spell-checker ignore list in sort.rs 2026-05-04 14:05:11 +02:00
Sylvestre Ledru 0bcc6a43e0 refactor(sync): remove unsafe libc::open/close, use safe rustix::fs::open 2026-05-04 13:47:55 +02:00
Sylvestre Ledru c545a4b9e8 refactor(sort): replace unsafe libc::fcntl with rustix::io::fcntl_getfd 2026-05-04 13:47:46 +02:00
Sylvestre Ledru 77eb582e61 refactor(mkfifo): remove unsafe libc::mkfifo, use safe rustix::fs::mknodat 2026-05-04 13:47:21 +02:00
Sylvestre Ledru affe332def refactor(mknod): remove unsafe libc::mknod and libc::umask calls
Replace unsafe libc::mknod() with safe rustix::fs::mknodat(CWD, ...)
and unsafe libc::umask() with safe rustix::process::umask().
2026-05-04 13:47:19 +02:00
Sylvestre Ledru b7ed929764 refactor(kill): remove unsafe libc::kill, use safe rustix process APIs
Replace the single unsafe libc::kill() call with safe rustix
equivalents: kill_process, kill_process_group,
kill_current_process_group, and their test_kill_* variants for
signal 0.
2026-05-04 13:46:55 +02:00
oech3 45a48a1365 yes: avoid kernel side length validation (#12115) 2026-05-04 10:12:43 +02:00
Sylvestre Ledru 4a69cf0c5e tr: drop '[:...:]' wrapper from invalid character class error (#12122) 2026-05-04 09:54:56 +02:00
Sylvestre Ledru 0b6a2f26e3 uucore/safe_copy: use rustix Mode flags to avoid mode_t width mismatch (#12140)
`Mode::from_bits_truncate(DEST_INITIAL_MODE)` failed to build on macOS
because `mode_t` is `u16` there but `u32` on Linux. Compose the mode
from `Mode::RUSR | Mode::WUSR` so the call is portable by construction
and self-documents the intent (read+write owner = 0o600).
2026-05-04 09:41:55 +02:00
Sylvestre Ledru 163103355a head: strip os error suffix from stdout write error message (#12121) 2026-05-04 09:38:54 +02:00
Sylvestre Ledru b2c4e0c125 factor: emit GNU 9.11 'is not a valid positive integer' for stdin input (#12137)
* factor: emit GNU's 'X is not a valid positive integer' wording

GNU's factor.c routes both stdin and command-line input through the same
print_factors() and reports invalid input as
  factor: 'X' is not a valid positive integer
Match that wording exactly so the new GNU 9.11 'nul4' test passes and
the 'cont' test no longer needs the warning/invalid-digit hunk in
tests_factor_factor.pl.patch.

* Add 'cmdline' to spell-checker ignore list
2026-05-04 09:31:59 +02:00
Sylvestre Ledru fdafdcac96 uucore: add safe_copy module with TOCTOU-resistant copy primitives (#12130) 2026-05-03 11:35:24 +02:00
oech3 a1aa3b97eb nohup: remove unsafe stub 2026-05-03 11:24:12 +02:00
oech3 af09954d5a uucore: do not use Linux specific fn at tests (#12128) 2026-05-03 09:57:43 +02:00
Sylvestre Ledru 9de73ef9be tests: patch GNU numfmt 'neg-arg-not-option' to accept clap-style error (#12123) 2026-05-03 09:56:18 +02:00
karanabe 3057b7d9da rm: fix inaccessible GNU test adaptation (#12127) 2026-05-03 09:53:27 +02:00
karanabe 37ac49ee35 cp: fix fail-perm GNU test adaptation
GNU coreutils 9.11 changed fail-perm.sh to use the EACCES helper
in the expected diagnostics. Match the full diagnostic line so the
existing uutils message adaptation still applies.
2026-05-02 14:34:47 +02:00
oech3 4b5a2af7a9 nohup: reduce unsafe 2026-05-01 16:31:22 +02:00
Guillem L. Jara f774940451 fix(ls): place dot dirs on top in version sorting
Also fixes the fact that version sorting had incorrect edge cases due to wrong name passing.
2026-05-01 15:09:49 +02:00
Guillem L. Jara e4a2ab3955 fix(ls): properly skip . & .. on --recursive
Depending on the sorting it would not, so it could recurse back through `..`. Backported from another PR of mine.
2026-05-01 15:09:49 +02:00
pocopepe 375fc3cd48 numfmt: reject %f values too large to format exactly 2026-05-01 09:40:58 +02:00
renovate[bot] 99d362039b chore(deps): update rust crate ctor to 0.12.0 2026-05-01 07:36:13 +02:00
xtqqczze 843b2026a9 chore(deps): update rust crate string-interner to 0.20.0 (#12103) 2026-04-30 22:55:17 +02:00
oech3 4620c2f3b6 yes: use tee syscall as fast-path 2026-04-30 14:45:28 +02:00
Chris Denton a07879b8ab tty: support printing msys2 tty path 2026-04-30 11:12:22 +02:00