From: Ken Raeburn Date: Thu, 26 Apr 2001 11:17:10 +0000 (+0000) Subject: back out accidental check-in X-Git-Tag: krb5-1.3-alpha1~1538 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2ce979d79acf5b894e92d5d4aa44823ddd01566f;p=krb5.git back out accidental check-in git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13209 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/krb524/Makefile.in b/src/krb524/Makefile.in index 912d2f43f..b49587b25 100644 --- a/src/krb524/Makefile.in +++ b/src/krb524/Makefile.in @@ -129,11 +129,3 @@ clean-unix:: clean-libs clean-libobjs $(KRB524_HDR): krb524.h $(CP) krb524.h $@ - -PROG_LIBPATH=-L$(TOPLIBD) $(TCL_LIBPATH) -PROG_RPATH=$(KRB5_LIBDIR)$(TCL_RPATH) - -tcltest: tcltest.o $(KRB524_DEPLIB) $(KRB4COMPAT_DEPLIBS) - $(CC_LINK) -o tcltest tcltest.o $(KRB524_LIB) $(KRB4COMPAT_LIBS) \ - $(TCL_LIBS) -tcltest.o: tcltest.c diff --git a/src/krb524/configure.in b/src/krb524/configure.in index 96fbc5100..eca1642cd 100644 --- a/src/krb524/configure.in +++ b/src/krb524/configure.in @@ -4,7 +4,6 @@ AC_PROG_INSTALL KRB5_BUILD_LIBRARY_STATIC KRB5_BUILD_LIBOBJS AC_PROG_AWK -AC_KRB5_TCL AC_CHECK_HEADERS(sys/select.h) dnl AC_TYPE_SIGNAL diff --git a/src/krb524/krb524d.c b/src/krb524/krb524d.c index 80c550544..ab3d038b9 100644 --- a/src/krb524/krb524d.c +++ b/src/krb524/krb524d.c @@ -65,7 +65,7 @@ krb5_error_code kdc_get_server_key(krb5_context, krb5_principal, static void usage(context) krb5_context context; { - fprintf(stderr, "Usage: %s [-k[eytab]] [-m[aster] [-r realm]] [-nofork] [-p portnum]\n", whoami); + fprintf(stderr, "Usage: %s [-k[eytab]] [-m[aster] [-r realm]] [-nofork]\n", whoami); cleanup_and_exit(1, context); } @@ -99,7 +99,6 @@ int main(argc, argv) krb5_context context; krb5_error_code retval; kadm5_config_params config_params; - int port = 0; retval = krb5_init_context(&context); if (retval) { @@ -127,14 +126,6 @@ int main(argc, argv) config_params.mask |= KADM5_CONFIG_REALM; config_params.realm = *argv; } - else if (strcmp(*argv, "-p") == 0) { - argv++; argc--; - if (argc == 0) - usage (context); - port = atoi (*argv); - if (port <= 0 || port > 65535) - usage (context); - } else break; argv++; argc--; @@ -157,16 +148,12 @@ int main(argc, argv) memset((char *) &saddr, 0, sizeof(struct sockaddr_in)); saddr.sin_family = AF_INET; saddr.sin_addr.s_addr = INADDR_ANY; - if (port == 0) { - serv = getservbyname(KRB524_SERVICE, "udp"); - if (serv == NULL) { - com_err(whoami, 0, "service entry not found, using %d", - KRB524_PORT); - saddr.sin_port = htons(KRB524_PORT); - } else - saddr.sin_port = serv->s_port; + serv = getservbyname(KRB524_SERVICE, "udp"); + if (serv == NULL) { + com_err(whoami, 0, "service entry not found, using %d", KRB524_PORT); + saddr.sin_port = htons(KRB524_PORT); } else - saddr.sin_port = htons(port); + saddr.sin_port = serv->s_port; if ((s = socket(AF_INET, SOCK_DGRAM, 0)) < 0) { com_err(whoami, errno, "creating main socket");