commit e358d74a805829dddf987ff62f42c7631df48e88
Author: Eivind Uggedal <[email protected]>
AuthorDate: Tue Mar 15 20:27:49 2016 +0000
Commit: sin <[email protected]>
CommitDate: Wed Mar 16 10:17:51 2016 +0000
dd: don't let failure to change pipe size affect exit code
diff --git a/dd.c b/dd.c
index 1e1fda1..daa75fd 100644
--- a/dd.c
+++ b/dd.c
@@ -152,6 +152,7 @@ copy_splice(struct dd_config *ddc)
if (fcntl(p[0], F_SETPIPE_SZ, 1<<n) != -1)
break;
}
+ errno = 0;
#endif
n = ddc->bs;
for (;ddc->b_out != ddc->count && !sigint;) {