Commit Graph
19162 Commits
Author SHA1 Message Date
oech3andDaniel Hofstetter e50ddecd08 du: make du -a -s error 2026-04-20 15:05:13 +02:00
oech3andSylvestre Ledru 53384016c1 tee: reduce line of code 2026-04-20 09:55:27 +02:00
oech3andDaniel Hofstetter 7254f8dfc9 tee: remove duplicated flush() 2026-04-20 09:16:16 +02:00
oech3andGitHub ec1fcdb4ac ls, stty: reduce cfg by target_vendor (#11910) 2026-04-20 08:36:32 +02:00
oech3andDaniel Hofstetter ab378e831f nohup: simplify cfg & use compile_error! 2026-04-20 08:28:44 +02:00
xtqqczzeandDaniel Hofstetter 4704caee08 clippy: lower array-size-threshold to ~64 KiB 2026-04-19 14:50:36 +02:00
xtqqczzeandDaniel Hofstetter 40070cadfc clippy: warn for large_stack_arrays lint
https://rust-lang.github.io/rust-clippy/rust-1.95.0/index.html#large_stack_arrays
2026-04-19 14:50:36 +02:00
oech3andDaniel Hofstetter e829cfb26c tee: move fn copy to MultiWriter & simplify 2026-04-19 14:28:37 +02:00
oech3andDaniel Hofstetter d5e84b4212 uniq: remove a collapsible_if 2026-04-19 13:50:07 +02:00
Lorenzo RossiGitHubpre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
fbefc2bd99 tail: fix panic on write error in bounded_tail (#11886)
* tail: fix panic on write error in bounded_tail

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* tail: increase test file size to ensure bounded_tail path

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2026-04-19 13:39:40 +02:00
oech3andDaniel Hofstetter 09587d3706 realpath: remove collapsible_if 2026-04-19 13:27:21 +02:00
oech3andDaniel Hofstetter d3870d0989 rmdir: remove collapsible_if 2026-04-19 13:18:16 +02:00
oech3andDaniel Hofstetter e006be06d2 od: remove collapsible_if 2026-04-19 12:50:33 +02:00
oech3andSylvestre Ledru f835fc484e join: remove collapsible_if 2026-04-19 11:43:31 +02:00
mattsuandSylvestre Ledru 01b7177f0b fix(sort): explicitly clean up temp directory in TmpDirWrapper::Drop
The `TmpDirWrapper::Drop` only cleared handler state without attempting
to delete the temporary directory. Cleanup relied entirely on the inner
`TempDir::Drop`, which silently ignores errors via `let _ =
remove_dir_all()`, potentially leaking `/tmp/uutils_sortXXXX`
directories.

Now `remove_tmp_dir` is called explicitly before `TempDir::Drop` runs,
providing a safety net for cases where the silent cleanup would fail.

Closes: #11728
2026-04-18 20:16:56 +02:00
mattsuandSylvestre Ledru c1631da43f fix(sort): always install SIGINT handler to ensure temp dir cleanup
The `should_install_signal_handler()` check added in 87c332c72 skipped
handler installation on systems with many open FDs, meaning Ctrl+C left
`/tmp/uutils_sortXXXX` directories behind with no cleanup at all.

Now the handler is always attempted; `ctrlc::set_handler` failing
naturally is sufficient. Failure is treated as non-fatal.

Closes: #11728
2026-04-18 20:16:13 +02:00
oech3andDaniel Hofstetter 47c17df8b7 dd: remove collapsible_if 2026-04-18 14:17:27 +02:00
oech3andDaniel Hofstetter 7d7ba48cc6 tail: remove collapsible_if 2026-04-18 14:10:10 +02:00
oech3andDaniel Hofstetter 1c49059d51 cat: remove collapsible_if 2026-04-18 08:30:15 +02:00
oech3andDaniel Hofstetter f08652fcce head: remove collapsible_if 2026-04-18 08:08:26 +02:00
oech3andDaniel Hofstetter 9a9c228300 split: remove collapsible_if 2026-04-18 07:50:00 +02:00
xtqqczzeandDaniel Hofstetter 26223adf5f panic.rs: use var_os 2026-04-17 16:05:42 +02:00
oech3andDaniel Hofstetter 50ca60ad59 tee: remove collapsible_if 2026-04-17 15:11:14 +02:00
oech3andDaniel Hofstetter e1766b0903 tee: drop cfg for unsupported target 2026-04-17 14:55:44 +02:00
oech3andDaniel Hofstetter c146e8ac91 tee: avoid 2 Err(e) at match 2026-04-17 14:48:16 +02:00