We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3194190 commit 9682c8bCopy full SHA for 9682c8b
1 file changed
src/uu/tee/src/tee.rs
@@ -134,8 +134,8 @@ fn copy(mut input: impl Read, mut output: impl Write) -> Result<()> {
134
// `tee` does not buffer the input.
135
output.flush()?;
136
}
137
- Err(e) if e.kind() == ErrorKind::Interrupted => {}
138
- Err(e) => return Err(e),
+ Err(e) if e.kind() != ErrorKind::Interrupted => return Err(e),
+ _ => {}
139
140
141
// buffer is too small optimize for large input
@@ -150,8 +150,8 @@ fn copy(mut input: impl Read, mut output: impl Write) -> Result<()> {
150
151
152
153
154
155
156
157
0 commit comments