Commit Graph

9280 Commits

Author SHA1 Message Date
Daniel Hofstetter 2d3aebce67 Merge pull request #9700 from sylvestre/issue-9699
kill -1 should trigger an error
2025-12-19 09:32:07 +01:00
nirv 64478acdbf date: fix inconsistent input parsing between -s and -d flags (#9690)
Add allow_hyphen_values(true) to -s flag to accept hyphen-prefixed values like '-3 days', making it consistent with -d flag behavior and GNU coreutils compatibility.

Fixes #9679
2025-12-19 08:48:08 +01:00
Daniel Hofstetter 15d51c8804 Merge pull request #9693 from sylvestre/printf
printf: Format String Parsing Overflow Causes Panic
2025-12-19 08:33:58 +01:00
Sylvestre Ledru cae94028af kill -1 should trigger an error
https://github.com/uutils/coreutils/issues/9699
2025-12-18 21:49:09 +01:00
Sylvestre Ledru 45f81bbae2 Merge pull request #9694 from xtqqczze/get_rlimit
sort: remove unsafe
2025-12-18 18:43:51 +01:00
Sylvestre Ledru 0b63ffca5c printf: Format String Parsing Overflow Causes Panic
Closes: https://github.com/uutils/coreutils/issues/9697
2025-12-18 18:30:21 +01:00
Chris Dryden b4b08e9596 nohup: use POSIXLY_CORRECT to determine failure exit code (#9685)
* nohup: use POSIXLY_CORRECT to determine failure exit code

* Update env value checking

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

---------

Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2025-12-18 18:29:55 +01:00
xtqqczze 955fcc7a52 sort: remove unsafe 2025-12-18 13:44:52 +00:00
Sylvestre Ledru adaaa3fb30 Merge pull request #9687 from xtqqczze/lint/as_ptr
clippy: fix ptr lints
2025-12-18 10:07:20 +01:00
xtqqczze 59cd5ab011 date: remove unsafe 2025-12-18 02:39:43 +00:00
xtqqczze cf1f618a7b clippy: fix ptr_cast_constness lint
https://rust-lang.github.io/rust-clippy/master/index.html#ptr_cast_constness
2025-12-18 00:19:14 +00:00
xtqqczze 70fd10d335 clippy: fix ptr_as_ptr lint
https://rust-lang.github.io/rust-clippy/master/index.html#ptr_as_ptr
2025-12-18 00:19:14 +00:00
xtqqczze c9268934c0 clippy: fix borrow_as_ptr lint
https://rust-lang.github.io/rust-clippy/master/index.html#borrow_as_ptr
2025-12-18 00:19:14 +00:00
xtqqczze 2000af835a clippy: fix map_unwrap_or lint (#9678)
https://rust-lang.github.io/rust-clippy/master/index.html#map_unwrap_or
2025-12-17 08:24:04 +01:00
Daniel Hofstetter 6b23e6f321 Merge pull request #9673 from ChrisDryden/fix-nl-preserve-bytes
nl: preserve raw bytes in output instead of using from_utf8_lossy
2025-12-16 15:22:29 +01:00
Christopher Dryden 93c8d5439b nl: preserve raw bytes in output instead of using from_utf8_lossy 2025-12-16 13:04:18 +00:00
Daniel Hofstetter ae3c51ff60 Merge pull request #9670 from sylvestre/id-unwrap
id -p crashes with panic when the real GID doesn't exist in /etc/group
2025-12-16 09:48:27 +01:00
Sylvestre Ledru 5c72d87e94 id -p crashes with panic when the real GID doesn't exist in /etc/group
hard to reproduce in an automated test
but here are the steps:
* edit /etc/passwd
* change one group id by another (non existing)
* run "id -p <user>"
2025-12-16 08:07:07 +01:00
karanabe 06d843fe19 Add legacy +POS/-POS handling in sort to pass GNU sort-field-limit test (#9501)
* sort: add legacy +POS/-POS parsing for GNU compat

Support GNU’s obsolescent +POS1 [-POS2] syntax by translating it to -k
before clap parses args, gated by _POSIX2_VERSION. Adds tests for accept
and reject cases to ensure sort-field-limit GNU test passes.

* sort: align legacy key tests with GNU field limit

* sort: rename legacy max-field test for clarity

* Simplify legacy key parsing inputs

* Inline legacy key end serialization

* Use starts_with for legacy arg digit check
2025-12-15 09:59:56 +01:00
Daniel Hofstetter 8ec02e7ebc Merge pull request #9603 from RenjiSann/fix-hardware-detection
Fix hardware capabilities detection; cksum --debug
2025-12-12 16:06:06 +01:00
Dorian Peron 231a857c5f Fix hardware capabilities detection; cksum --debug 2025-12-12 14:51:50 +01:00
oech3 47084a341a lib.rs: Remove non GNU hashsum aliases 2025-12-12 18:33:58 +09:00
Chris Dryden a7e4e91fb1 base32, base64, basenc: Simplifying the base encoding uu_app and adding basic buffer tests (#9409)
* Simplifying the base encoding uu_app and adding basic buffer tests

* Added an ignore for the spell checker on base encoding output
2025-12-12 09:43:38 +01:00
mattsu 04a6737e5d fix(readlink): use physical resolution for canonicalize flags to match GNU behavior
Changed ResolveMode from Logical to Physical for -f, -e, and -m flags in readlink to ensure symlinks are followed before resolving '..' (parent directory), matching GNU readlink's physical resolution order for compatibility. Added a test case to verify the symlink resolution occurs before parent directory evaluation.
2025-12-11 19:02:11 +09:00
Dorian Péron a977c36498 Merge pull request #9529 from martinkunkel2/dd-print-slow-transfer-rate
dd: Handle slow transfer rates in progress display
2025-12-10 12:52:32 +01:00