[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: another 0.3d nit...




Thanks!

/Johan

--- load.c	2000/09/10 19:18:58	1.38
+++ load.c	2000/12/14 16:25:02	1.39
@@ -34,7 +34,7 @@
 #include "kadmin_locl.h"
 #include <kadm5/private.h>
 
-RCSID("$Id: load.c,v 1.38 2000/09/10 19:18:58 joda Exp $");
+RCSID("$Id: load.c,v 1.39 2000/12/14 16:25:02 joda Exp $");
 
 struct entry {
     char *principal;
@@ -496,12 +496,12 @@
 	usage ("load");
 	return 0;
     }
-    if(argc - optind < 2 || help_flag) {
+    if(argc - optind != 1 || help_flag) {
 	usage ("load");
 	return 0;
     }
 
-    doit(argv[1], 0);
+    doit(argv[optind], 0);
     return 0;
 }
 
@@ -517,11 +517,11 @@
 	usage ("merge");
 	return 0;
     }
-    if(argc - optind < 2 || help_flag) {
+    if(argc - optind != 1 || help_flag) {
 	usage ("merge");
 	return 0;
     }
 
-    doit(argv[1], 1);
+    doit(argv[optind], 1);
     return 0;
 }

/Johan