diff options
Diffstat (limited to 'usr.bin/cvs/diff.c')
-rw-r--r-- | usr.bin/cvs/diff.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.bin/cvs/diff.c b/usr.bin/cvs/diff.c index f5b40e832e5..f071ce5f8a2 100644 --- a/usr.bin/cvs/diff.c +++ b/usr.bin/cvs/diff.c @@ -1,4 +1,4 @@ -/* $OpenBSD: diff.c,v 1.12 2004/12/08 21:11:07 djm Exp $ */ +/* $OpenBSD: diff.c,v 1.13 2004/12/14 21:40:39 jfb Exp $ */ /* * Copyright (C) Caldera International Inc. 2001-2002. * All rights reserved. @@ -501,6 +501,11 @@ cvs_diff_file(struct cvs_file *cfp, void *arg) return (0); } + if (cfp->cf_cvstat == CVS_FST_LOST) { + cvs_log(LP_WARN, "cannot find file %s", CVS_FILE_NAME(cfp)); + return (0); + } + rf = NULL; diff_file = cvs_file_getpath(cfp, fpath, sizeof(fpath)); |