summaryrefslogtreecommitdiffstats
path: root/src/appl/telnet
diff options
context:
space:
mode:
authorTheodore Tso <tytso@mit.edu>1993-06-03 12:18:16 +0000
committerTheodore Tso <tytso@mit.edu>1993-06-03 12:18:16 +0000
commitd6df5b8bc391ac1726d3bd63bee1605b9b634eae (patch)
tree9ae6c54057fc929c8d69bbef2574fffe1455acdc /src/appl/telnet
parent63c59b334f2b9bb62f0f9002150a1433ad73f3c8 (diff)
downloadkrb5-d6df5b8bc391ac1726d3bd63bee1605b9b634eae.tar.gz
krb5-d6df5b8bc391ac1726d3bd63bee1605b9b634eae.tar.xz
krb5-d6df5b8bc391ac1726d3bd63bee1605b9b634eae.zip
Change dependencies on path.h to KRB5_PATH_TTY, KRB5_PATH_LOGIN, etc
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2602 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/appl/telnet')
-rw-r--r--src/appl/telnet/telnetd/sys_term.c10
-rw-r--r--src/appl/telnet/telnetd/telnetd.c4
2 files changed, 7 insertions, 7 deletions
diff --git a/src/appl/telnet/telnetd/sys_term.c b/src/appl/telnet/telnetd/sys_term.c
index f020866f9a..92a0d19d3e 100644
--- a/src/appl/telnet/telnetd/sys_term.c
+++ b/src/appl/telnet/telnetd/sys_term.c
@@ -36,7 +36,7 @@ static char sccsid[] = "@(#)sys_term.c 5.19 (Berkeley) 1/19/93";
#endif /* not lint */
#include "telnetd.h"
-#include "pathnames.h"
+#include <krb5/osconf.h>
#if defined(AUTHENTICATION)
#include <libtelnet/auth.h>
@@ -1003,7 +1003,7 @@ getptyslave()
* 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);
@@ -1519,10 +1519,10 @@ start_login(host, autologin, name)
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*/
}
diff --git a/src/appl/telnet/telnetd/telnetd.c b/src/appl/telnet/telnetd/telnetd.c
index 0fe95f3e80..7e821544a9 100644
--- a/src/appl/telnet/telnetd/telnetd.c
+++ b/src/appl/telnet/telnetd/telnetd.c
@@ -42,7 +42,7 @@ static char sccsid[] = "@(#)telnetd.c 5.51 (Berkeley) 1/21/93";
#endif /* not lint */
#include "telnetd.h"
-#include "pathnames.h"
+#include <krb5/osconf.h>
#if defined(_SC_CRAY_SECURE_SYS)
#include <sys/sysv.h>
@@ -975,7 +975,7 @@ telnet(f, p, host)
#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);