summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog1
-rw-r--r--TODO4
-rw-r--r--configure.in8
-rw-r--r--loginrec.c15
-rw-r--r--next-posix.c19
5 files changed, 12 insertions, 35 deletions
diff --git a/ChangeLog b/ChangeLog
index 558600b30..06f412a65 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,7 @@
4 Garrick James <garrick@james.net> 4 Garrick James <garrick@james.net>
5 - (djm) Check for SCO pty naming style (ptyp%d/ttyp%d). Based on fix from 5 - (djm) Check for SCO pty naming style (ptyp%d/ttyp%d). Based on fix from
6 Bastian Trompetter <btrompetter@firemail.de> 6 Bastian Trompetter <btrompetter@firemail.de>
7 - (djm) NeXT tweaks from Ben Lindstrom <mouring@pconline.com>
7 - More OpenBSD updates: 8 - More OpenBSD updates:
8 - deraadt@cvs.openbsd.org 2000/08/24 15:46:59 9 - deraadt@cvs.openbsd.org 2000/08/24 15:46:59
9 [scp.c] 10 [scp.c]
diff --git a/TODO b/TODO
index ecfd21e33..93d8998b2 100644
--- a/TODO
+++ b/TODO
@@ -9,10 +9,6 @@
9 9
10- Cleanup configure.in 10- Cleanup configure.in
11 11
12- Next now has sigaction() based on sigvec(). But it sill does not
13 seem to act correctly. Ctrl-C and Ctrl-Z don't return echo to the
14 underlying shell.
15
16- utmp/wtmp logging does not work on NeXT 12- utmp/wtmp logging does not work on NeXT
17 13
18- Complete Tru64 SIA support 14- Complete Tru64 SIA support
diff --git a/configure.in b/configure.in
index 824ff5c02..b7f216bb9 100644
--- a/configure.in
+++ b/configure.in
@@ -122,15 +122,13 @@ case "$host" in
122 need_dash_r=1 122 need_dash_r=1
123 ;; 123 ;;
124*-next-*) 124*-next-*)
125 # hardwire lastlog location (can't detect it on some versions)
126 conf_lastlog_location="/usr/adm/lastlog" 125 conf_lastlog_location="/usr/adm/lastlog"
127 conf_utmp_location=/etc/utmp 126 conf_utmp_location=/etc/utmp
127 conf_wtmp_location=/usr/adm/wtmp
128 MAIL=/usr/spool/mail
128 AC_DEFINE(HAVE_NEXT) 129 AC_DEFINE(HAVE_NEXT)
129 CFLAGS="$CFLAGS -I/usr/local/include" 130 CFLAGS="$CFLAGS -I/usr/local/include"
130 MAIL=/usr/spool/mail
131 AC_MSG_WARN([*** Tested: PA-RISC/m68k Untested: Sparc/Intel]) 131 AC_MSG_WARN([*** Tested: PA-RISC/m68k Untested: Sparc/Intel])
132 AC_MSG_WARN([*** Expect 'scp' to fail!])
133 AC_MSG_WARN([*** Please report any problems, thanks])
134 ;; 132 ;;
135*-*-solaris*) 133*-*-solaris*)
136 CFLAGS="$CFLAGS -I/usr/local/include" 134 CFLAGS="$CFLAGS -I/usr/local/include"
diff --git a/loginrec.c b/loginrec.c
index 2c6330a04..61bceb180 100644
--- a/loginrec.c
+++ b/loginrec.c
@@ -132,25 +132,26 @@
132 132
133/** 133/**
134 ** TODO: 134 ** TODO:
135 ** homegrown ttyslot()q 135 ** homegrown ttyslot()
136 ** test, test, test 136 ** test, test, test
137 ** 137 **
138 ** Platform status: 138 ** Platform status:
139 ** ---------------- 139 ** ----------------
140 ** 140 **
141 ** Known good: 141 ** Known good:
142 ** Linux (Redhat 6.2, need more variants) 142 ** Linux (Redhat 6.2, Debian)
143 ** Solaris
143 ** HP-UX 10.20 (gcc only) 144 ** HP-UX 10.20 (gcc only)
144 ** IRIX 145 ** IRIX
146 ** NeXT - M68k/HPPA (4.2/3.3)
145 ** 147 **
146 ** Testing required: Please send reports! 148 ** Testing required: Please send reports!
147 ** Solaris
148 ** NetBSD 149 ** NetBSD
149 ** HP-UX 11 150 ** HP-UX 11
150 ** AIX 151 ** AIX
151 ** 152 **
152 ** Platforms with known problems: 153 ** Platforms with known problems:
153 ** NeXT 154 ** Some variants of Slackware Linux
154 ** 155 **
155 **/ 156 **/
156 157
@@ -160,7 +161,7 @@
160#include "xmalloc.h" 161#include "xmalloc.h"
161#include "loginrec.h" 162#include "loginrec.h"
162 163
163RCSID("$Id: loginrec.c,v 1.21 2000/08/18 04:08:38 djm Exp $"); 164RCSID("$Id: loginrec.c,v 1.22 2000/08/29 03:30:37 djm Exp $");
164 165
165/** 166/**
166 ** prototypes for helper functions in this file 167 ** prototypes for helper functions in this file
@@ -724,7 +725,7 @@ utmp_write_direct(struct logininfo *li, struct utmp *ut)
724 725
725 /* FIXME: (ATL) ttyslot() needs local implementation */ 726 /* FIXME: (ATL) ttyslot() needs local implementation */
726 727
727#if defined(SUNOS4) && defined(HAVE_GETTTYENT) 728#if defined(HAVE_GETTTYENT)
728 register struct ttyent *ty; 729 register struct ttyent *ty;
729 730
730 tty=0; 731 tty=0;
@@ -745,7 +746,7 @@ utmp_write_direct(struct logininfo *li, struct utmp *ut)
745 746
746 tty = ttyslot(); /* seems only to work for /dev/ttyp? style names */ 747 tty = ttyslot(); /* seems only to work for /dev/ttyp? style names */
747 748
748#endif /* SUNOS4 && HAVE_GETTTYENT */ 749#endif /* HAVE_GETTTYENT */
749 750
750 if (tty > 0 && (fd = open(UTMP_FILE, O_RDWR|O_CREAT, 0644)) >= 0) { 751 if (tty > 0 && (fd = open(UTMP_FILE, O_RDWR|O_CREAT, 0644)) >= 0) {
751 (void)lseek(fd, (off_t)(tty * sizeof(struct utmp)), SEEK_SET); 752 (void)lseek(fd, (off_t)(tty * sizeof(struct utmp)), SEEK_SET);
diff --git a/next-posix.c b/next-posix.c
index 0ca241fdd..0f0c0ea49 100644
--- a/next-posix.c
+++ b/next-posix.c
@@ -1,26 +1,7 @@
1#include "config.h" 1#include "config.h"
2 2
3#ifdef HAVE_NEXT 3#ifdef HAVE_NEXT
4#include <stdio.h>
5#include <stdlib.h>
6#include <string.h>
7#include <errno.h> 4#include <errno.h>
8#include <unistd.h>
9
10#include <sys/types.h>
11#include <sys/stat.h>
12#include <fcntl.h>
13
14#include <sys/fcntl.h>
15#include <sys/ioctl.h>
16#include <sys/time.h>
17#include <sys/file.h>
18#include <errno.h>
19#include <termios.h>
20#include <sys/wait.h>
21
22#include "xmalloc.h"
23#include "ssh.h"
24#include "next-posix.h" 5#include "next-posix.h"
25 6
26int 7int