From 6e46c99f73f3fe0c07ce13746dc3449bb646f970 Mon Sep 17 00:00:00 2001 From: Xavier Santolaria Date: Mon, 5 Sep 2005 20:03:23 +0000 Subject: add warning message if file status is unknown; --- usr.bin/cvs/status.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 * Copyright (c) 2005 Xavier Santolaria @@ -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)); -- cgit v1.2.3