summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxsa <xsa@openbsd.org>2005-09-05 20:03:22 +0000
committerxsa <xsa@openbsd.org>2005-09-05 20:03:22 +0000
commit553914b8bd26897b14e4a1b1eb78b2064af0769b (patch)
tree255a2aabee246e0f0a55e337f79eec6810029356
parentlet's move forward with the local add command; (diff)
downloadwireguard-openbsd-553914b8bd26897b14e4a1b1eb78b2064af0769b.tar.xz
wireguard-openbsd-553914b8bd26897b14e4a1b1eb78b2064af0769b.zip
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));