]> git.ipfire.org Git - thirdparty/krb5.git/commit
Improve error messages from kadmin change_password
authorRobbie Harwood <rharwood@redhat.com>
Mon, 6 May 2019 17:13:16 +0000 (13:13 -0400)
committerGreg Hudson <ghudson@mit.edu>
Fri, 10 May 2019 14:42:40 +0000 (10:42 -0400)
commit13ba54002d362ebb09be464b4e7ec75050d1348f
treedeb2b862ae2ff0889ab970d4395261b2fee64a6e
parent210356653a2f963ffe9a8a1b1627c64fb8ca7a3d
Improve error messages from kadmin change_password

The checks for missing option arguments were dead code, because the
loop condition requires at least two remaining arguments.  Instead
check for at least one argument with a leading "-", and check for too
many or too few arguments after the loop.  Add an initial message for
unrecognized options.

[ghudson@mit.edu: adjusted logic to improve mesages in more cases]
src/kadmin/cli/kadmin.c