dd: don't let failure to change pipe size affect exit code - ubase - suckless linux base utils
 (HTM) git clone git://git.suckless.org/ubase
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit e358d74a805829dddf987ff62f42c7631df48e88
 (DIR) parent c64b5b04c7993765ab67207e86db92a48d7087f4
 (HTM) Author: Eivind Uggedal <eivind@uggedal.com>
       Date:   Tue, 15 Mar 2016 20:27:49 +0000
       
       dd: don't let failure to change pipe size affect exit code
       
       Diffstat:
         M dd.c                                |       1 +
       
       1 file changed, 1 insertion(+), 0 deletions(-)
       ---
 (DIR) diff --git 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;) {