sort --compress-program missing 2>/dev/full does not abort (#10951)

This commit is contained in:
oech3
2026-03-07 09:57:03 +01:00
committed by GitHub
parent 5e24462b26
commit 515a10b9f1
+3 -2
View File
@@ -11,7 +11,7 @@
use std::cmp::Ordering;
use std::fs::File;
use std::io::Write;
use std::io::{Write, stderr};
use std::path::PathBuf;
use std::{
io::Read,
@@ -69,7 +69,8 @@ pub fn ext_sort(
}
Err(err) => {
// Print the error and disable compression
eprintln!(
let _ = writeln!(
stderr(),
"sort: could not run compress program '{prog}': {}",
strip_errno(&err)
);