fix argument number test

This commit is contained in:
joda 2001-05-04 13:09:43 +00:00
parent 5b3932d176
commit ba3d920481

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 1997-2000 Kungliga Tekniska Högskolan
* Copyright (c) 1997-2001 Kungliga Tekniska Högskolan
* (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved.
*
@ -33,7 +33,7 @@
#include "kadmin_locl.h"
RCSID("$Id: rename.c,v 1.1.1.3 2001/02/11 13:51:33 assar Exp $");
RCSID("$Id: rename.c,v 1.2 2001/05/04 13:09:43 joda Exp $");
static struct getargs args[] = {
{ "help", 'h', arg_flag, NULL }
@ -62,7 +62,7 @@ rename_entry(int argc, char **argv)
usage ();
return 0;
}
if(argc - optind < 3 || help_flag) {
if(argc - optind != 2 || help_flag) {
usage ();
return 0;
}