Return to util.c CVS log | Up to [local] / src / usr.bin / cvs |
version 1.161, 2017/08/28 19:33:20 | version 1.162, 2019/06/28 13:35:00 | ||
---|---|---|---|
|
|
||
int fds[2], st; | int fds[2], st; | ||
char *argp[4] = { "sh", "-c", prog, NULL }; | char *argp[4] = { "sh", "-c", prog, NULL }; | ||
if (in != NULL && pipe(fds) < 0) { | if (in != NULL && pipe(fds) == -1) { | ||
cvs_log(LP_ERR, "cvs_exec: pipe failed"); | cvs_log(LP_ERR, "cvs_exec: pipe failed"); | ||
return (-1); | return (-1); | ||
} | } |