summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Santolaria <xsa@cvs.openbsd.org>2005-09-05 20:03:23 +0000
committerXavier Santolaria <xsa@cvs.openbsd.org>2005-09-05 20:03:23 +0000
commit6e46c99f73f3fe0c07ce13746dc3449bb646f970 (patch)
treee8c8e54c9a42c755f5c01b73e88db15834efce61
parente90731f57c931370223e9aa3ac5b97619e9c5d74 (diff)
add warning message if file status is unknown;
-rw-r--r--usr.bin/cvs/status.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/cvs/status.c b/usr.bin/cvs/status.c
index 4194b9718fb..a7d1cfafe5c 100644
--- a/usr.bin/cvs/status.c
+++ b/usr.bin/cvs/status.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: status.c,v 1.46 2005/08/17 18:33:55 joris Exp $ */
+/* $OpenBSD: status.c,v 1.47 2005/09/05 20:03:22 xsa Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* Copyright (c) 2005 Xavier Santolaria <xsa@openbsd.org>
@@ -201,6 +201,10 @@ cvs_status_local(CVSFILE *cf, void *arg)
}
buf[0] = '\0';
+
+ if (cf->cf_cvstat == CVS_FST_UNKNOWN)
+ cvs_log(LP_WARN, "nothing known about %s", cf->cf_name);
+
if (cf->cf_cvstat == CVS_FST_LOST || cf->cf_cvstat == CVS_FST_UNKNOWN)
strlcpy(buf, "no file ", sizeof(buf));
strlcat(buf, cf->cf_name, sizeof(buf));