=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/patch/pch.c,v retrieving revision 1.26 retrieving revision 1.27 diff -c -r1.26 -r1.27 *** src/usr.bin/patch/pch.c 2003/07/28 19:15:34 1.26 --- src/usr.bin/patch/pch.c 2003/07/29 20:10:17 1.27 *************** *** 1,7 **** ! /* $OpenBSD: pch.c,v 1.26 2003/07/28 19:15:34 deraadt Exp $ */ #ifndef lint ! static const char rcsid[] = "$OpenBSD: pch.c,v 1.26 2003/07/28 19:15:34 deraadt Exp $"; #endif /* not lint */ #include --- 1,7 ---- ! /* $OpenBSD: pch.c,v 1.27 2003/07/29 20:10:17 millert Exp $ */ #ifndef lint ! static const char rcsid[] = "$OpenBSD: pch.c,v 1.27 2003/07/29 20:10:17 millert Exp $"; #endif /* not lint */ #include *************** *** 17,22 **** --- 17,23 ---- #include "common.h" #include "util.h" #include "pch.h" + #include "pathnames.h" /* Patch (diff listing) abstract type. */ *************** *** 1320,1329 **** unlink(TMPOUTNAME); fatal("can't create temp file %s", TMPOUTNAME); } ! if (verbose) ! snprintf(buf, sizeof buf, "/bin/ed %s", TMPOUTNAME); ! else ! snprintf(buf, sizeof buf, "/bin/ed - %s", TMPOUTNAME); pipefp = popen(buf, "w"); } for (;;) { --- 1321,1328 ---- unlink(TMPOUTNAME); fatal("can't create temp file %s", TMPOUTNAME); } ! snprintf(buf, sizeof buf, "%s%s%s", _PATH_ED, ! verbose ? " " : " -s ", TMPOUTNAME); pipefp = popen(buf, "w"); } for (;;) {