+Sat Apr 22 00:42:22 1995 Theodore Y. Ts'o (tytso@dcl)
+
+ * krshd.c (main): The variable krb5_override_default_realm is
+ obsolete. Use the krb5_set_default_realm function instead.
+
+Fri Apr 21 21:11:17 1995 Theodore Y. Ts'o (tytso@dcl)
+
+ * krshd.c: Add #include for <sys/stat.h>, which is now needed.
+
Fri Apr 21 17:18:57 1995 Mark Eichin <eichin@cygnus.com>
rlogin testing changes from ian@cygnus.com.
#include <sys/param.h>
#include <sys/socket.h>
#include <sys/file.h>
+#include <sys/stat.h>
#include <sys/time.h>
#include <fcntl.h>
krb5_data desinbuf,desoutbuf;
krb5_context bsd_context;
char *srvtab = NULL;
-extern char *krb5_override_default_realm;
void fatal();
int v5_des_read();
openlog(progname, LOG_PID | LOG_ODELAY, LOG_DAEMON);
#endif /* 4.2 syslog */
+#ifdef KERBEROS
+ krb5_init_context(&bsd_context);
+ krb5_init_ets(bsd_context);
+#endif
+
if (argc == 1) { /* Get parameters from program name. */
if (strlen(progname) > MAX_PROG_NAME) {
usage();
break;
case 'M':
- krb5_override_default_realm = optarg;
+ krb5_set_default_realm(bsd_context, optarg);
break;
case 'A':
exit(1);
}
#ifdef KERBEROS
- krb5_init_context(&bsd_context);
- krb5_init_ets(bsd_context);
netf = f;
desinbuf.data = des_inbuf;
desoutbuf.data = des_outbuf;