* login.c: Define TAB3 to 0 if non existant
* krlogin.c (mode): ifdef code based on TABDLY existing on
machine. (netbsd lacks this).
* krcp.c: Declare sys_errlist only if needed by the OS.
* configure.in: Add DECLARE_SYS_ERRLIST
Check for libcrypt defining the function crypt
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5835
dc483132-0cff-0310-8789-
dd5450dbe970
+Sun May 21 16:36:39 1995 Ezra Peisach <epeisach@kangaroo.mit.edu>
+
+ * loginpaths.h: Add NetBSD paths.
+
+ * login.c: Define TAB3 to 0 if non existant
+
+ * krlogin.c (mode): ifdef code based on TABDLY existing on
+ machine. (netbsd lacks this).
+
+ * krcp.c: Declare sys_errlist only if needed by the OS.
+
+ * configure.in: Add DECLARE_SYS_ERRLIST
+ Check for libcrypt defining the function crypt
+
Mon May 15 10:43:30 1995 <tytso@rsx-11.mit.edu>
* login.c (main): Only try to use TIOCSETD if it is defined
AC_CHECK_LIB(ndbm,main)
AC_CHECK_LIB(dbm,main)
AC_CHECK_LIB(util,main)
+AC_CHECK_LIB(crypt,crypt)
dnl
dnl AIX has them all; SCO might too
LOGINLIBS=
AC_FUNC_CHECK(logwtmp,AC_DEFINE(HAVE_LOGWTMP))
AC_HAVE_HEADERS(sys/filio.h sys/sockio.h unistd.h stdlib.h sys/label.h sys/tty.h ttyent.h lastlog.h sys/select.h sys/ptyvar.h)
AC_REPLACE_FUNCS(getdtablesize)
+DECLARE_SYS_ERRLIST
CHECK_SIGNALS
CHECK_SETJMP
CHECK_DIRENT
int errs;
krb5_sigtype lostconn();
int errno;
+#ifdef NEED_SYS_ERRLIST
extern char *sys_errlist[];
+#endif
int iamremote, targetshouldbedirectory;
int iamrecursive;
int pflag;
# define TIOCPKT_WINDOW 0x80
# endif /* TIOCPKT_WINDOW */
+#ifndef ONOCR
+#define ONOCR 0
+#endif
+
#ifdef POSIX_TERMIOS
struct termios deftty;
#endif
newtty.c_oflag &= ~(ONLCR|ONOCR);
newtty.c_oflag |= (OPOST);
}
+#ifdef TABDLY
/* preserve tab delays, but turn off XTABS */
if ((newtty.c_oflag & TABDLY) == TAB3)
newtty.c_oflag &= ~TABDLY;
+#endif
if (litout)
newtty.c_oflag &= ~OPOST;
sb.c_cc[VMIN] = 1;
if (eight)
sb.c_iflag &= ~(ISTRIP);
+#ifdef TABDLY
/* preserve tab delays, but turn off tab-to-space expansion */
if ((sb.c_oflag & TABDLY) == TAB3)
sb.c_oflag &= ~TAB3;
+#endif
/*
** restore current flow control state
*/
#define PRIO_OFFSET 0
#endif
+#if !defined(TAB3)
+#define TAB3 0
+#endif
+
#define TTYGRPNAME "tty" /* name of group to own ttys */
#define MOTDFILE "/etc/motd"
#define LPATH "/usr/bin:/usr/dbin:/usr/dbin"
#endif
#endif
+
+#ifndef LPATH
+#ifdef __NetBSD__
+#define LPATH "/usr/bin:/bin"
+#define RPATH "/usr/bin:/bin"
+#endif
+#endif