readlink /etc/mtab > /dev/full panics (#10525)

This commit is contained in:
oech3
2026-01-28 12:03:30 +01:00
committed by GitHub
parent 46e30f7ca7
commit eeca1e1d90
+1 -1
View File
@@ -185,7 +185,7 @@ pub fn uu_app() -> Command {
fn show(path: &Path, line_ending: Option<LineEnding>) -> std::io::Result<()> {
uucore::display::print_verbatim(path)?;
if let Some(line_ending) = line_ending {
print!("{line_ending}");
write!(stdout(), "{line_ending}")?;
}
stdout().flush()
}