Hello Porters,
I've finally (thanks to Wendy Palm of Cray) ported OpenSSH to
Dynix v4.4.4. I had to make sure that "UseLogin" was set to
"no" in the
sshd_config file. Also, here are the old-style contextual diffs (obtained
with 'diff -c' on the Dynix box) of the two files I had to change:
*** configure Sat Jun 16 17:09:50 2001
--- configure.new Mon Oct 8 11:33:09 2001
***************
*** 1960,1965 ****
--- 1960,1985 ----
LIBS="$LIBS -lgen -lnsl -lucb"
;;
+ *-sequent-sysv4*)
+ CPPFLAGS="$CPPFLAGS -I/usr/local/include"
+ LDFLAGS="$LDFLAGS -L/usr/local/lib"
+ LIBS="$LIBS -lnsl -lsec"
+ rsh_path="/usr/bin/resh"
+ conf_utmpx_location="/var/adm/utmpx"
+ cat >> confdefs.h <<\EOF
+ #define USE_PIPES 1
+ EOF
+
+ cat >> confdefs.h <<\EOF
+ #define BROKEN_SAVED_UIDS 1
+ EOF
+
+ cat >> confdefs.h <<\EOF
+ #define LOGIN_NEEDS_UTMPX 1
+ EOF
+
+ MANTYPE=cat
+ ;;
*-*-sysv4.2*)
CPPFLAGS="$CPPFLAGS -I/usr/local/include"
LDFLAGS="$LDFLAGS -L/usr/local/lib"
*** uidswap.c Thu Apr 26 15:10:15 2001
--- uidswap.c.new Mon Oct 8 11:33:42 2001
***************
*** 85,91 ****
if (setgroups(user_groupslen, user_groups) < 0)
fatal("setgroups: %.100s", strerror(errno));
#endif /* !HAVE_CYWIN */
! #ifndef SAVED_IDS_WORK_WITH_SETEUID
/* Propagate the privileged gid to all of our gids. */
if (setgid(getegid()) < 0)
debug("setgid %u: %.100s", (u_int) getegid(),
strerror(errno));
--- 85,98 ----
if (setgroups(user_groupslen, user_groups) < 0)
fatal("setgroups: %.100s", strerror(errno));
#endif /* !HAVE_CYWIN */
! #ifdef SAVED_IDS_WORK_WITH_SETEUID
! if (setegid(pw->pw_gid) < 0)
! fatal("setegid %u: %.100s", (u_int) pw->pw_gid,
! strerror(errno));
! if (seteuid(pw->pw_uid) == -1)
! fatal("seteuid %u: %.100s", (u_int) pw->pw_uid,
! strerror(errno));
! #else /* SAVED_IDS_WORK_WITH_SETEUID */
/* Propagate the privileged gid to all of our gids. */
if (setgid(getegid()) < 0)
debug("setgid %u: %.100s", (u_int) getegid(),
strerror(errno));
*** 93,104 ****
if (setuid(geteuid()) < 0)
debug("setuid %u: %.100s", (u_int) geteuid(),
strerror(errno));
#endif /* SAVED_IDS_WORK_WITH_SETEUID */
- if (setegid(pw->pw_gid) < 0)
- fatal("setegid %u: %.100s", (u_int) pw->pw_gid,
- strerror(errno));
- if (seteuid(pw->pw_uid) == -1)
- fatal("seteuid %u: %.100s", (u_int) pw->pw_uid,
- strerror(errno));
}
/*