summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoris Vink <joris@cvs.openbsd.org>2005-03-08 00:20:40 +0000
committerJoris Vink <joris@cvs.openbsd.org>2005-03-08 00:20:40 +0000
commit841d346ec5723054cac4ec8893b7772c81a283de (patch)
treeff7b4ed5e4bd6e41b2aa9c1d5ebb61c1e00f559c
parente24d7f7d9cb27af3bddd0e9c84ca471a63d53a52 (diff)
don't forget to send options to the server when they are specified.
ok jfb@
-rw-r--r--usr.bin/cvs/admin.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/cvs/admin.c b/usr.bin/cvs/admin.c
index 6f96856242d..40144fdb4b0 100644
--- a/usr.bin/cvs/admin.c
+++ b/usr.bin/cvs/admin.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: admin.c,v 1.3 2005/03/07 19:41:07 joris Exp $ */
+/* $OpenBSD: admin.c,v 1.4 2005/03/08 00:20:39 joris Exp $ */
/*
* Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org>
* Copyright (c) 2005 Joris Vink <joris@openbsd.org>
@@ -227,7 +227,8 @@ cvs_admin(int argc, char **argv)
return (EX_PROTOCOL);
}
- if ((comment != NULL) && (cvs_sendarg(root, comment, 0) < 0))
+ if ((comment != NULL) && ((cvs_sendarg(root, "-c", 0) < 0) ||
+ (cvs_sendarg(root, comment, 0) < 0)))
return (EX_PROTOCOL);
if (runflags & FLAG_DELUSER) {