summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorJean-Francois Brousseau <jfb@cvs.openbsd.org>2004-12-14 21:40:40 +0000
committerJean-Francois Brousseau <jfb@cvs.openbsd.org>2004-12-14 21:40:40 +0000
commitd1f3d7faf427e4408bb4c6247fe88062b808474f (patch)
tree3e878c7aaf3af0cd60e8648e1b8859187551eae6 /usr.bin
parent32bd123bf59f81874960deb7453a357a6357713d (diff)
complain about lost files
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/cvs/diff.c7
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));