From 83fd2eba9c9236f5cd6f87a6baa35c08c976910e Mon Sep 17 00:00:00 2001 From: Xavier Santolaria Date: Mon, 13 Nov 2006 11:50:12 +0000 Subject: fix check on required arguments. --- usr.bin/cvs/admin.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin') diff --git a/usr.bin/cvs/admin.c b/usr.bin/cvs/admin.c index d1f6c529cfd..77eac305e71 100644 --- a/usr.bin/cvs/admin.c +++ b/usr.bin/cvs/admin.c @@ -1,4 +1,4 @@ -/* $OpenBSD: admin.c,v 1.37 2006/11/13 11:04:19 xsa Exp $ */ +/* $OpenBSD: admin.c,v 1.38 2006/11/13 11:50:11 xsa Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau * Copyright (c) 2005 Joris Vink @@ -119,7 +119,7 @@ cvs_admin(int argc, char **argv) argc -= optind; argv += optind; - if (argc <= 1) + if (argc == 0) fatal("%s", cvs_cmd_admin.cmd_synopsis); cr.enterdir = NULL; -- cgit v1.2.3