parsing options, not EOF.
get_in_tkt.c (krb5_get_init_creds): If libdefaults/{REALM}/noaddresses
is true, then don't put any addresses in the ticket request.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10549
dc483132-0cff-0310-8789-
dd5450dbe970
+1998-05-06 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * t_ser.c (main): POSIX states that getopt returns -1
+ when it is done parsing options, not EOF.
+
+1998-05-05 Theodore Ts'o <tytso@rsts-11.mit.edu>
+
+ * get_in_tkt.c (krb5_get_init_creds): If
+ libdefaults/{REALM}/noaddresses is true, then don't put
+ any addresses in the ticket request.
+
Mon May 4 15:54:07 1998 Tom Yu <tlyu@mit.edu>
* get_in_tkt.c: Add prototype for make_preauth_list.
/*
* Try number one:
*
- * [appdefaults]
+ * [libdefaults]
* REALM = {
* option = <boolean>
* }
/*
* Try number two:
*
- * [appdefaults]
+ * [libdefaults]
* option = <boolean>
*/
goto cleanup;
}
- if (options && (options->flags & KRB5_GET_INIT_CREDS_OPT_ADDRESS_LIST))
+ if (options && (options->flags & KRB5_GET_INIT_CREDS_OPT_ADDRESS_LIST)) {
request.addresses = options->address_list;
- else
+ }
+ /* it would be nice if this parsed out an address list, but
+ that would be work. */
+ else if (((ret = krb5_appdefault_boolean(context, &client->realm,
+ "noaddresses", &tempint)) == 0)
+ && tempint) {
+ ;
+ } else {
if ((ret = krb5_os_localaddr(context, &request.addresses)))
goto cleanup;
+ }
request.authorization_data.ciphertext.length = 0;
request.authorization_data.ciphertext.data = 0;
do_ptest = 1;
do_rtest = 1;
do_stest = 1;
- while ((option = getopt(argc, argv, "acekprsxvACEKPRSX")) != EOF) {
+ while ((option = getopt(argc, argv, "acekprsxvACEKPRSX")) != -1) {
switch (option) {
case 'a':
do_atest = 0;