* klogind should do a better job of initializing output flags on tty
authorSam Hartman <hartmans@mit.edu>
Mon, 24 Jun 1996 04:05:09 +0000 (04:05 +0000)
committerSam Hartman <hartmans@mit.edu>
Mon, 24 Jun 1996 04:05:09 +0000 (04:05 +0000)
* Fix so login.krb5 compiles with Athena Kerberos libs (needed
    for rsaix build)

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8540 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/bsd/ChangeLog
src/appl/bsd/Makefile.in
src/appl/bsd/configure.in
src/appl/bsd/krlogind.c
src/appl/bsd/login.c

index a8f4563a8f2fd55e586cd972b7b735f8ae3b2723..daceb9f08eef91cc362499a5a7ff98c3febbd454 100644 (file)
@@ -1,3 +1,21 @@
+Fri Jun 21 21:12:52 1996  Sam Hartman  <hartmans@mit.edu>
+
+       * configure.in : Make sure it works with the built-in libkrb4.a again.
+
+Fri Jun 14 13:19:30 1996  Sam Hartman  <hartmans@mit.edu>
+
+       * login.c: Add define to deal with krb_save_credentials possibly
+       being called save_credentials, and to define krb_get_err_text if
+       it is not defined by the krb4 library.
+
+       * configure.in :  check for krb_save_credentials and krb_get_err_text
+
+Thu Jun 13 14:24:50 1996  Sam Hartman  <hartmans@mit.edu>
+
+       * krlogind.c (doit): If using vendor login, make sure output flags
+       are reasonable.
+
+
 Sat Jun 15 04:03:32 1996  Ezra Peisach  <epeisach@kangaroo.mit.edu>
 
        * configure.in: Cleanup of tests whose results are not longer used
index 7bf583f822ea802d41cfb516f69e321f280cd165..bf8136d374fbcd888b2743c723350210c3c153d0 100644 (file)
@@ -1,5 +1,5 @@
 CFLAGS = $(CCOPTS) $(DEFS) $(LOCALINCLUDE) $(DEFINES)
-LOCALINCLUDE=-I$(SRCTOP)/include/kerberosIV
+LOCALINCLUDE=
 SETENVSRC=@SETENVSRC@
 SETENVOBJ=@SETENVOBJ@
 
index 476046ba700066abae739d02b973b7e6afb4e281..d8620999f0e6113c515d8c39712e9effe5cdf74f 100644 (file)
@@ -216,4 +216,15 @@ USE_KRB4_LIBRARY
 USE_KRB5UTIL_LIBRARY
 KRB5_LIBRARIES
 V5_USE_SHARED_LIB
+if test "$krb5_cv_build_krb4_libs" = yes; then
+       AC_DEFINE(HAVE_KRB_GET_ERR_TEXT)
+       AC_DEFINE(HAVE_KRB_SAVE_CREDENTIALS)
+else
+       oldlibs=$LIBS
+       LIBS=" $KRB4_LIB -lkrb5 -lcrypto -lcom_err"
+       AC_CHECK_FUNCS(krb_get_err_text krb_save_credentials)
+       LIBS=$oldlibs
+fi
+
+AC_CHECK_HEADERS(krb4-proto.h)
 V5_AC_OUTPUT_MAKEFILE
index f016fcd7bf346df1c64d1f5cbbe35775976e7985..ac83cccb0673475b810288f2369d4342fc70b274 100644 (file)
@@ -620,6 +620,7 @@ int syncpipe[2];
        new_termio.c_iflag &= ~(IXON|IXANY|BRKINT|INLCR|ICRNL);
 #else
        new_termio.c_lflag |= (ICANON|ECHO|ISIG|IEXTEN);
+       new_termio.c_oflag |= (ONLCR|OPOST|TAB3);
        new_termio.c_iflag|= (IXON|IXANY|BRKINT|INLCR|ICRNL);
 #endif /*Do we need binary stream?*/
        new_termio.c_iflag &= ~(ISTRIP);
index 4a86e5107d7a1bdad87d6f427d6eb59adf118660..86e9eeda5007bf6ea656a34616e7cb5bb62ba5c9 100644 (file)
@@ -173,12 +173,29 @@ typedef sigtype (*handler)();
 #include <krb.h>
 #include <netdb.h>
 #include <netinet/in.h>
+#ifdef HAVE_KRB4_PROTO_H
 #include <krb4-proto.h>
+#endif
 #include <arpa/inet.h>
 #ifdef BIND_HACK
 #include <arpa/nameser.h>
 #include <arpa/resolv.h>
 #endif /* BIND_HACK */
+
+/* Hacks to maintain compatability with Athena libkrb*/
+#ifndef HAVE_KRB_SAVE_CREDENTIALS
+#define krb_save_credentials save_credentials
+#endif /*HAVE_KRB_SAVE_CREDENTIALS*/
+
+#ifndef HAVE_KRB_GET_ERR_TEXT
+
+static const char * krb_get_err_text(kerror)
+  int kerror;
+{
+  return krb_err_txt[kerror];
+}
+
+#endif /*HAVE_KRB_GET_ERR_TEXT*/
 #endif /* KRB4 */
 
 #ifndef __STDC__