Login Patch
W. Reilly Cooley
wcooley at wirex.com
Sun Aug 27 16:51:43 EST 2000
Please excuse me for mailing you directly instead of using the 'sendbug'
facility; it seems to be an OpenBSD-only facility, and I didn't see a
bug-tracking interface on the web site.
I know the "UseLogin" feature is deprecated (to some degree, at any
rate), however, on a Red Hat 6.2-based system, it is broken, because
ssh.h statically defines LOGIN_PROGRAM as /usr/bin/login, whereas here
it is /bin/login.
Attached is a patch which corrects this by adding a check in configure.in
and adding LOGIN_PROGRAM to PATHS in Makefile.in. Of course you need
to re-run autoconf to pick up the new changes.
(Please CC: me as I'm not on this list)
Wil
--
W. Reilly Cooley, Esq. wcooley at wirex.com
-------------- next part --------------
--- openssh-2.1.1p4/configure.in.orig Thu Aug 17 11:11:27 2000
+++ openssh-2.1.1p4/configure.in Thu Aug 17 11:23:17 2000
@@ -13,6 +13,8 @@
AC_SUBST(PERL)
AC_PATH_PROG(ENT, ent)
AC_SUBST(ENT)
+AC_PATH_PROG(LOGIN_PROGRAM, login)
+AC_SUBST(LOGIN_PROGRAM)
if test -z "$LD" ; then
LD=$CC
--- openssh-2.1.1p4/Makefile.in.orig Thu Aug 17 11:25:31 2000
+++ openssh-2.1.1p4/Makefile.in Thu Aug 17 11:24:06 2000
@@ -17,10 +17,11 @@
SSH_PROGRAM=@bindir@/ssh
ASKPASS_LOCATION=@libexecdir@/ssh
ASKPASS_PROGRAM=$(ASKPASS_LOCATION)/ssh-askpass
+LOGIN_PROGRAM=@LOGIN_PROGRAM@
CC=@CC@
LD=@LD@
-PATHS=-DETCDIR=\"$(sysconfdir)\" -DSSH_PROGRAM=\"$(SSH_PROGRAM)\" -DSSH_ASKPASS_DEFAULT=\"$(ASKPASS_PROGRAM)\"
+PATHS=-DETCDIR=\"$(sysconfdir)\" -DSSH_PROGRAM=\"$(SSH_PROGRAM)\" -DSSH_ASKPASS_DEFAULT=\"$(ASKPASS_PROGRAM)\" -DLOGIN_PROGRAM=\"$(LOGIN_PROGRAM)\"
CFLAGS=@CFLAGS@ $(PATHS) @DEFS@
LIBS=@LIBS@
AR=@AR@
More information about the openssh-unix-dev
mailing list