]> git.ipfire.org Git - thirdparty/krb5.git/commit
Simplify kdb5_util global argv processing 934/head
authorGreg Hudson <ghudson@mit.edu>
Wed, 22 May 2019 17:05:15 +0000 (13:05 -0400)
committerGreg Hudson <ghudson@mit.edu>
Wed, 29 May 2019 16:59:44 +0000 (12:59 -0400)
commitf5397f358b16a42e570e0a0553099bc58ff799e0
treee6d1d69f264e2bd9ffc16d66f1108ff72619419e
parent03ecb09d2af3544af7b9232c11278f9d2bee4b4b
Simplify kdb5_util global argv processing

kdb5_util could issue an unexplained error if a command argument
matched a command name, such as when trying to load a dump file named
"dump".  It could also mysteriously work if the command name and its
arguments were misordered, such as "kdb5_util kdb.dump load".

In the main option loop, build cmd_argv without special-casing command
names; then look up cmd_argv[0] after the loop.

ticket: 8806
src/kadmin/dbutil/kdb5_util.c