19561 Commits

Author SHA1 Message Date
Daniel Hofstetter d561443a9f dircolors: remove OutputFmt::Unknown 2026-06-02 11:38:32 +02:00
Daniel Hofstetter 031553148a dircolors: remove unsafe code in unit test
Co-authored-by: oech3 <79379754+oech3@users.noreply.github.com>
Co-authored-by: xtqqczze <45661989+xtqqczze@users.noreply.github.com>
2026-06-02 11:38:32 +02:00
Daniel Hofstetter 390cd77f6e dircolors: make a function and an enum private 2026-06-02 11:38:32 +02:00
Daniel Hofstetter f1073d7c9e dircolors: turn integration test into unit test 2026-06-02 11:38:32 +02:00
oech3 f6bf222a7a wc: cleanup cfg 2026-06-02 09:28:11 +02:00
Nikola Lukovic 3fbcb79a30 chmod/chown: symlink cycles detection (#11805) 2026-06-01 15:13:58 +02:00
Sylvestre Ledru b286558423 chown/chgrp/chmod/rm: open recursive descent with O_NOFOLLOW 2026-06-01 14:43:47 +02:00
oech3 4e3788685e cksum family: read ahead file 2026-06-01 14:24:41 +02:00
oech3 047051093d pipes.rs: fix typo 2026-06-01 14:08:57 +02:00
oech3 10ef28ddc1 pipes:rs: replace unnecessary splice by read-ahead hint 2026-06-01 13:33:27 +02:00
oech3 1bb616763a tsort: simplify code 2026-06-01 11:14:43 +02:00
Wei Li bcdd134352 shuf: fix panic/abort on large -i range without small --head-count (#12501)
* shuf: fix panic/abort on large -i range without small --head-count

NonrepeatingIterator::new sized its sparse hash map to
min(head_count, range_len) and allocated it with the infallible
with_capacity_and_hasher. head_count defaults to u64::MAX when -n is
absent (and can be passed a huge value explicitly), so for a large -i
range the map was asked to reserve the whole range:

  shuf -i 1-9999999999999999999                       # no -n
  shuf -i 1-9999999999999999999 -n 9999999999999999999

Both aborted (exit 134) with a hashbrown "Hash table capacity overflow"
panic or an allocator abort, where GNU prints "memory exhausted" and
exits 1.

Reserve fallibly with try_reserve (mirroring the Vec branch) and map
the failure to a clean error, so an unsatisfiable request errors like
GNU instead of crashing. A small --head-count still works unchanged.

Closes #12500.

* shuf: assert full stderr (incl. program prefix) in memory-exhausted tests

Per review on #12501: switch the two memory-exhausted regression tests
from stderr_contains to stderr_only("shuf: memory exhausted\n") so they
verify the whole stderr, including the `shuf:` program-name prefix.
2026-06-01 07:50:35 +02:00
oech3 7f0053075e remove some collapsible_if (#12539)
* remove some collapsible_if

* Use .ok() == .ok()

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

---------

Co-authored-by: oech3 <>
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
2026-05-31 15:15:19 +02:00
Daniel Hofstetter 1457a1e366 mktemp: use map_err instead of match 2026-05-31 13:05:18 +02:00
oech3 ee1baca7be CICD: remove an unused variable 2026-05-31 12:40:01 +02:00
oech3 34c23948ea tee: avoid 0fill & heap alloc 2026-05-31 09:40:28 +02:00
oech3 f7de38716e remove some collapsible_if 2026-05-31 09:40:04 +02:00
oech3 b77733c4d3 pipes.rs: simplify pipe wrapper 2026-05-30 17:45:20 +02:00
Sylvestre Ledru 8c5d8c5b1c release notes 0.9.0 - oversight
Updated release notes for version 0.9.0 to reflect changes in unsafe surface reduction, migration to rustix, and performance improvements.
2026-05-30 17:43:14 +02:00
Sylvestre Ledru 83db890502 release notes for 0.9.0 2026-05-30 17:18:56 +02:00
oech3 d6b999f76c installation.md: bump Ubuntu version 2026-05-30 16:34:23 +02:00
Daniel Hofstetter b5fcae085d dircolors: use stdout_only in tests where possible 2026-05-30 16:17:14 +02:00
Daniel Hofstetter 4834b3187d dircolors: improve test by ensuring stderr output 2026-05-30 16:17:14 +02:00
Lorenzo Rossi ed15a26a6a chown: -h on symlink to directory operates on link, not target (#12522)
closes: #11887
2026-05-30 14:29:58 +02:00
Daniel Hofstetter 66d9ae61c6 shred: simplify nested matches 2026-05-30 12:33:24 +02:00