The mysterious kinit -a option

Russ Allbery rra at stanford.edu
Fri Apr 15 23:19:39 EDT 2005


Hello folks,

There is a Debian bug (#232431) reporting that the kinit man page
documents the -a option (to force addresses in tickets), but that option
isn't actually supported.  This appears to be intentional; that option
isn't available unless GETOPT_LONG is defined.  There's even an explicit
comment to that effect:

        case 'a':
            /* Note: This is supported only with GETOPT_LONG */
            opts->addresses = 1;
            break;

This is rather mystifying to me, and Sam Hartman didn't understand why
this was done either.  Fixing this would appear to be as easy as adding
"a" to the getopt string, since all the other code appears to be there,
but clearly this was done intentionally at some point.

Does anyone know why the code is like this?  Should documentation of -a be
removed from the man page instead?

-- 
Russ Allbery (rra at stanford.edu)             <http://www.eyrie.org/~eagle/>


More information about the krbdev mailing list