From b0cc050fce24790759b7ae7ecdb75cca6a754c71 Mon Sep 17 00:00:00 2001 From: Geoffrey King Date: Sun, 19 Jul 1998 02:13:59 +0000 Subject: [PATCH] Remove the variable use_other_realm, is not actually necessary for the new -r realm code. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10709 dc483132-0cff-0310-8789-dd5450dbe970 --- src/krb524/ChangeLog | 5 +++++ src/krb524/krb524d.c | 8 +++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/krb524/ChangeLog b/src/krb524/ChangeLog index 4bb96657f..28f0adb80 100644 --- a/src/krb524/ChangeLog +++ b/src/krb524/ChangeLog @@ -1,3 +1,8 @@ +Sat Jul 18 22:10:29 1998 Geoffrey King + + * krb524d.c (main): Remove the variable use_other_realm. + It is not actually necessary for the new -r realm code. + Fri Jul 17 04:11:47 1998 Geoffrey King * krb524d.c (main): Accept a -r command line option to specify diff --git a/src/krb524/krb524d.c b/src/krb524/krb524d.c index ae77e55c8..e9ab662d1 100644 --- a/src/krb524/krb524d.c +++ b/src/krb524/krb524d.c @@ -47,7 +47,7 @@ int signalled = 0; static int debug = 0; void *handle; -int use_keytab, use_master, use_other_realm; +int use_keytab, use_master; char *keytab = NULL; krb5_keytab kt; @@ -101,7 +101,7 @@ int main(argc, argv) whoami = ((whoami = strrchr(argv[0], '/')) ? whoami + 1 : argv[0]); argv++; argc--; - use_master = use_keytab = use_other_realm = 0; + use_master = use_keytab = 0; config_params.mask = 0; while (argc) { @@ -110,7 +110,6 @@ int main(argc, argv) else if (strncmp(*argv, "-m", 2) == 0) use_master = 1; else if (strcmp(*argv, "-r") == 0) { - use_other_realm = 1; argv++; argc--; if (argc == 0 || !use_master) usage(context); @@ -122,9 +121,8 @@ int main(argc, argv) argv++; argc--; } if (argc || use_keytab + use_master > 1 || - use_keytab + use_other_realm > 1 || use_keytab + use_master == 0) { - use_keytab = use_master = use_other_realm = 0; + use_keytab = use_master = 0; usage(context); } -- 2.26.2