[Bug 1794] sshd segfault when calling pam_authenticate() in pam_unix module which has option "try_first_pass"
bugzilla-daemon at bugzilla.mindrot.org
bugzilla-daemon at bugzilla.mindrot.org
Tue Jul 13 18:55:03 EST 2010
https://bugzilla.mindrot.org/show_bug.cgi?id=1794
--- Comment #1 from Bitman Zhou <bitman.zhou at centrify.com> ---
It seems that libpam on HP-UX needs to be linked with "-Z" option. The
patch below can fix this issue.
-bash-4.0$ diff -rc Makefile.in.orig Makefile.in
*** Makefile.in.orig Tue Jul 13 16:52:31 2010
--- Makefile.in Tue Jul 13 16:53:23 2010
***************
*** 4,9 ****
--- 4,10 ----
#SHELL = @SH@
AUTORECONF=autoreconf
+ PLATFORM := $(shell uname)
prefix=@prefix@
exec_prefix=@exec_prefix@
***************
*** 142,148 ****
--- 143,153 ----
$(LD) -o $@ $(SSHOBJS) $(LDFLAGS) -lssh -lopenbsd-compat
$(LIBS)
sshd$(EXEEXT): libssh.a $(LIBCOMPAT) $(SSHDOBJS)
+ ifeq (${PLATFORM},HP-UX)
+ $(LD) -o $@ $(SSHDOBJS) -Wl,-Z $(LDFLAGS) -lssh
-lopenbsd-compat $(SSHDLIBS) $(LIBS)
+ else
$(LD) -o $@ $(SSHDOBJS) $(LDFLAGS) -lssh -lopenbsd-compat
$(SSHDLIBS) $(LIBS)
+ endif
scp$(EXEEXT): $(LIBCOMPAT) libssh.a scp.o progressmeter.o
$(LD) -o $@ scp.o progressmeter.o bufaux.o $(LDFLAGS) -lssh
-lopenbsd-compat $(LIBS)
--
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching the assignee of the bug.
More information about the openssh-bugs
mailing list