=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/rcs/rcsdiff.c,v retrieving revision 1.14 retrieving revision 1.15 diff -c -r1.14 -r1.15 *** src/usr.bin/rcs/rcsdiff.c 2005/11/14 11:01:04 1.14 --- src/usr.bin/rcs/rcsdiff.c 2005/11/16 09:57:04 1.15 *************** *** 1,4 **** ! /* $OpenBSD: rcsdiff.c,v 1.14 2005/11/14 11:01:04 xsa Exp $ */ /* * Copyright (c) 2005 Joris Vink * All rights reserved. --- 1,4 ---- ! /* $OpenBSD: rcsdiff.c,v 1.15 2005/11/16 09:57:04 xsa Exp $ */ /* * Copyright (c) 2005 Joris Vink * All rights reserved. *************** *** 118,131 **** if (rev2 == NULL) { if (rcsdiff_file(file, frev, argv[i]) < 0) { - cvs_log(LP_ERR, "failed to rcsdiff"); rcs_close(file); status = 2; continue; } } else { if (rcsdiff_rev(file, rev, rev2) < 0) { - cvs_log(LP_ERR, "failed to rcsdiff"); rcs_close(file); status = 2; continue; --- 118,129 ---- *************** *** 151,156 **** --- 149,160 ---- char path1[MAXPATHLEN], path2[MAXPATHLEN]; BUF *b1, *b2; char rbuf[64]; + struct stat st; + + if (stat(filename, &st) == -1) { + cvs_log(LP_ERRNO, "%s", filename); + return (-1); + } rcsnum_tostr(rev, rbuf, sizeof(rbuf)); if (verbose == 1)