From: Russ Allbery Date: Tue, 13 Jun 2006 16:08:38 +0000 (+0000) Subject: Enable kinit -a to match the man page and add documentation X-Git-Tag: krb5-1.5-beta1~35 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f038cc46f0746015f768bfaf3bb6b200a970cbb8;p=krb5.git Enable kinit -a to match the man page and add documentation Ticket: 3030 Reported_Version: 1.4.1 Component: krb5-clients git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18125 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/clients/kinit/kinit.c b/src/clients/kinit/kinit.c index 7c1a9d1a8..452d98cf0 100644 --- a/src/clients/kinit/kinit.c +++ b/src/clients/kinit/kinit.c @@ -211,7 +211,7 @@ usage(progname) USAGE_BREAK_LONG "[-p | -P" USAGE_LONG_PROXIABLE "] " USAGE_BREAK_LONG - "[-A" USAGE_LONG_ADDRESSES "] " + "[-a | -A" USAGE_LONG_ADDRESSES "] " USAGE_BREAK "[-v] [-R] " "[-k [-t keytab_file]] " @@ -258,6 +258,7 @@ fprintf(stderr, USAGE_OPT_FMT, indent, col1) ULINE("\t", "-F not forwardable", OPTTYPE_KRB5); ULINE("\t", "-p proxiable", OPTTYPE_KRB5); ULINE("\t", "-P not proxiable", OPTTYPE_KRB5); + ULINE("\t", "-a include addresses", OPTTYPE_KRB5); ULINE("\t", "-A do not include addresses", OPTTYPE_KRB5); ULINE("\t", "-v validate", OPTTYPE_KRB5); ULINE("\t", "-R renew", OPTTYPE_BOTH); @@ -295,7 +296,7 @@ parse_options(argc, argv, opts, progname) int use_k5 = 0; int i; - while ((i = GETOPT(argc, argv, "r:fpFP54AVl:s:c:kt:RS:v")) + while ((i = GETOPT(argc, argv, "r:fpFP54aAVl:s:c:kt:RS:v")) != -1) { switch (i) { case 'V': @@ -330,7 +331,6 @@ parse_options(argc, argv, opts, progname) opts->not_proxiable = 1; break; case 'a': - /* Note: This is supported only with GETOPT_LONG */ opts->addresses = 1; break; case 'A':