=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/cvs/util.c,v retrieving revision 1.161 retrieving revision 1.162 diff -c -r1.161 -r1.162 *** src/usr.bin/cvs/util.c 2017/08/28 19:33:20 1.161 --- src/usr.bin/cvs/util.c 2019/06/28 13:35:00 1.162 *************** *** 1,4 **** ! /* $OpenBSD: util.c,v 1.161 2017/08/28 19:33:20 otto Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * Copyright (c) 2005, 2006 Joris Vink --- 1,4 ---- ! /* $OpenBSD: util.c,v 1.162 2019/06/28 13:35:00 deraadt Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * Copyright (c) 2005, 2006 Joris Vink *************** *** 888,894 **** int fds[2], st; char *argp[4] = { "sh", "-c", prog, NULL }; ! if (in != NULL && pipe(fds) < 0) { cvs_log(LP_ERR, "cvs_exec: pipe failed"); return (-1); } --- 888,894 ---- int fds[2], st; char *argp[4] = { "sh", "-c", prog, NULL }; ! if (in != NULL && pipe(fds) == -1) { cvs_log(LP_ERR, "cvs_exec: pipe failed"); return (-1); }