diff options
author | 2007-05-27 00:46:31 +0000 | |
---|---|---|
committer | 2007-05-27 00:46:31 +0000 | |
commit | 2ff29463d75aed1feac2665d080897a5719345f3 (patch) | |
tree | a9683076832669cdf9a1d80449c8404eec794398 | |
parent | Fix off-by-one, from Tobias Stoeckmann. (diff) | |
download | wireguard-openbsd-2ff29463d75aed1feac2665d080897a5719345f3.tar.xz wireguard-openbsd-2ff29463d75aed1feac2665d080897a5719345f3.zip |
Call fatal() if extra arguments are given to "opencvs server". From
Tobias Stoeckmann.
OK niallo@
-rw-r--r-- | usr.bin/cvs/cvs.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/cvs/cvs.c b/usr.bin/cvs/cvs.c index 0a6f391e901..e73544d5f15 100644 --- a/usr.bin/cvs/cvs.c +++ b/usr.bin/cvs/cvs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cvs.c,v 1.124 2007/05/26 20:45:26 ray Exp $ */ +/* $OpenBSD: cvs.c,v 1.125 2007/05/27 00:46:31 ray Exp $ */ /* * Copyright (c) 2006, 2007 Joris Vink <joris@openbsd.org> * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> @@ -239,6 +239,9 @@ main(int argc, char **argv) cvs_file_init(); if (cvs_cmdop == CVS_OP_SERVER) { + if (cmd_argc > 1) + fatal("server does not take any extra arguments"); + setvbuf(stdin, NULL, _IOLBF, 0); setvbuf(stdout, NULL, _IOLBF, 0); |