]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix KDC worker process argument parsing
authorGreg Hudson <ghudson@mit.edu>
Wed, 18 Jun 2014 16:58:39 +0000 (12:58 -0400)
committerGreg Hudson <ghudson@mit.edu>
Fri, 27 Jun 2014 20:02:46 +0000 (16:02 -0400)
commit1776fd19120d230115527febbd22979eb64ee1ff
tree778b2b3e2853837af3652b2a80fc90aefbc4c22a
parent7a9990d73537dcdd95bf9b280ebfd560adf8342d
Fix KDC worker process argument parsing

To create worker processes, the KDC shuts down realms, forks off the
worker processes, then reinitializes realms in each child.
Reinitializing realms requires making a second pass over the
command-line arguments.  To do this with getopt, optind must be
reinitialized to 1 for each pass; otherwise, no options will be seen
the second time around.

ticket: 7945
target_version: 1.12.2
tags: pullup
src/kdc/main.c