=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/rsync/Attic/child.c,v retrieving revision 1.4 retrieving revision 1.5 diff -c -r1.4 -r1.5 *** src/usr.bin/rsync/Attic/child.c 2019/02/17 16:34:04 1.4 --- src/usr.bin/rsync/Attic/child.c 2019/02/17 17:19:05 1.5 *************** *** 1,4 **** ! /* $Id: child.c,v 1.4 2019/02/17 16:34:04 deraadt Exp $ */ /* * Copyright (c) 2019 Kristaps Dzonsons * --- 1,4 ---- ! /* $Id: child.c,v 1.5 2019/02/17 17:19:05 deraadt Exp $ */ /* * Copyright (c) 2019 Kristaps Dzonsons * *************** *** 46,52 **** if ((args = fargs_cmdline(&sess, f)) == NULL) { ERRX1(&sess, "fargs_cmdline"); ! exit(EXIT_FAILURE); } for (i = 0; args[i] != NULL; i++) --- 46,52 ---- if ((args = fargs_cmdline(&sess, f)) == NULL) { ERRX1(&sess, "fargs_cmdline"); ! exit(1); } for (i = 0; args[i] != NULL; i++) *************** *** 56,65 **** if (dup2(fd, STDIN_FILENO) == -1) { ERR(&sess, "dup2"); ! exit(EXIT_FAILURE); } if (dup2(fd, STDOUT_FILENO) == -1) { ERR(&sess, "dup2"); ! exit(EXIT_FAILURE); } /* Here we go... */ --- 56,65 ---- if (dup2(fd, STDIN_FILENO) == -1) { ERR(&sess, "dup2"); ! exit(1); } if (dup2(fd, STDOUT_FILENO) == -1) { ERR(&sess, "dup2"); ! exit(1); } /* Here we go... */ *************** *** 67,72 **** execvp(args[0], args); ERR(&sess, "%s: execvp", args[0]); ! exit(EXIT_FAILURE); /* NOTREACHED */ } --- 67,72 ---- execvp(args[0], args); ERR(&sess, "%s: execvp", args[0]); ! exit(1); /* NOTREACHED */ }