#endif /* not lint */
#include "telnetd.h"
-#include "pathnames.h"
+#include <krb5/osconf.h>
#if defined(AUTHENTICATION)
#include <libtelnet/auth.h>
* that we are the session (process group) leader.
*/
# ifdef TIOCNOTTY
- t = open(_PATH_TTY, O_RDWR);
+ t = open(KRB5_PATH_TTY, O_RDWR);
if (t >= 0) {
(void) ioctl(t, TIOCNOTTY, (char *)0);
(void) close(t);
unsetenv("USER");
}
closelog();
- execv(_PATH_LOGIN, argv);
+ execv(KRB5_PATH_LOGIN, argv);
- syslog(LOG_ERR, "%s: %m\n", _PATH_LOGIN);
- fatalperror(net, _PATH_LOGIN);
+ syslog(LOG_ERR, "%s: %m\n", KRB5_PATH_LOGIN);
+ fatalperror(net, KRB5_PATH_LOGIN);
/*NOTREACHED*/
}
#endif /* not lint */
#include "telnetd.h"
-#include "pathnames.h"
+#include <krb5/osconf.h>
#if defined(_SC_CRAY_SECURE_SYS)
#include <sys/sysv.h>
#ifdef TIOCNOTTY
{
register int t;
- t = open(_PATH_TTY, O_RDWR);
+ t = open(KRB5_PATH_TTY, O_RDWR);
if (t >= 0) {
(void) ioctl(t, TIOCNOTTY, (char *)0);
(void) close(t);