summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/cvs.c
diff options
context:
space:
mode:
authorTobias Stoeckmann <tobias@cvs.openbsd.org>2007-09-19 12:48:42 +0000
committerTobias Stoeckmann <tobias@cvs.openbsd.org>2007-09-19 12:48:42 +0000
commitab86f9707269ae47a51b9822515c56e09eb2a448 (patch)
tree199cb9c959a7f84837a2d34c951cf77614462d1a /usr.bin/cvs/cvs.c
parent1488a92a08753cb1877df147b91a942146f7bceb (diff)
Print warning about invalid command in .cvsrc only if -V is in use.
OpenCVS defaults to -q, so man page should say "with -V", not "without -q or -Q". OK joris@
Diffstat (limited to 'usr.bin/cvs/cvs.c')
-rw-r--r--usr.bin/cvs/cvs.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.bin/cvs/cvs.c b/usr.bin/cvs/cvs.c
index a80ed2036bb..92ab1f824cd 100644
--- a/usr.bin/cvs/cvs.c
+++ b/usr.bin/cvs/cvs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cvs.c,v 1.135 2007/09/19 12:26:16 tobias Exp $ */
+/* $OpenBSD: cvs.c,v 1.136 2007/09/19 12:48:41 tobias Exp $ */
/*
* Copyright (c) 2006, 2007 Joris Vink <joris@openbsd.org>
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
@@ -465,9 +465,10 @@ cvs_read_rcfile(void)
lp++;
cmdp = cvs_findcmd(p);
if (cmdp == NULL) {
- cvs_log(LP_NOTICE,
- "unknown command `%s' in `%s:%d'",
- p, rcpath, linenum);
+ if (verbosity == 2)
+ cvs_log(LP_NOTICE,
+ "unknown command `%s' in `%s:%d'",
+ p, rcpath, linenum);
continue;
}