Files
ports/security/sshpass/files/patch-configure.ac
Thomas Zander 2d040a35a3 Backport patch from upstream trunk for 'hangs forever' issue
On http://sourceforge.net/p/sshpass/bugs/12/ the issue is explained:
Doing a "sshpass -p password ssh vmfreebsd10-32 -l account ls" hangs
forever.  The reason is that in this combination the prompt for the
password looks like this: "Password for account@vmfreebsd10-32:" and
sshpass checks the password against the string "assword:", so there
is no match.

This is fixed upstream in trunk, but no release has been created yet.
Import the patch into the ports tree until the next release.

PR:		204819
Submitted by:	andrey@bsdnir.info
Approved by:	maintainer timeout
2016-01-02 11:59:59 +00:00

15 lines
551 B
Plaintext

--- configure.ac.orig 2011-08-06 07:03:01 UTC
+++ configure.ac
@@ -32,6 +32,11 @@ AC_FUNC_SELECT_ARGTYPES
AC_TYPE_SIGNAL
AC_CHECK_FUNCS([select posix_openpt strdup])
+AC_ARG_ENABLE([password-prompt],
+ [AS_HELP_STRING([--enable-password-prompt=prompt], [Provide alternative ssh password prompt to look for.])],
+ [AC_DEFINE_UNQUOTED([PASSWORD_PROMPT], ["$enable_password_prompt"], [Password prompt to use])],
+ [AC_DEFINE([PASSWORD_PROMPT], ["assword"])])
+
AC_CONFIG_FILES([Makefile])
AM_CONFIG_HEADER(config.h)
AC_OUTPUT