Change dependencies on path.h to KRB5_PATH_TTY, KRB5_PATH_LOGIN, etc
authorTheodore Tso <tytso@mit.edu>
Thu, 3 Jun 1993 12:18:16 +0000 (12:18 +0000)
committerTheodore Tso <tytso@mit.edu>
Thu, 3 Jun 1993 12:18:16 +0000 (12:18 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@2602 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/telnet/telnetd/sys_term.c
src/appl/telnet/telnetd/telnetd.c

index f020866f9a36037c8c024248e6c902c10efad769..92a0d19d3efdab859ff6493f3ae0711195e7022e 100644 (file)
@@ -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*/
 }
 
index 0fe95f3e80bf1189f20e1eb12ac889c47f631339..7e821544a9e9148c455c31a88db78eedc27996a4 100644 (file)
@@ -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);