Bug 204819

Summary: [PATCH] security/sshpass: new feature, backport upstream patch
Product: Ports & Packages Reporter: Andrey Fesenko <andrey>
Component: Individual Port(s)Assignee: Thomas Zander <riggs>
Status: Closed FIXED    
Severity: Affects Only Me CC: gaod, miwi, pi, riggs
Priority: --- Keywords: patch, patch-ready
Version: LatestFlags: riggs: maintainer-feedback-
riggs: merge-quarterly-
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch-Makefile and add files patchs
koobs: maintainer-approval? (gaod)
poudriere bulk -t log none

Description Andrey Fesenko 2015-11-25 20:35:11 UTC
Created attachment 163535 [details]
patch-Makefile and add files patchs

Standart login ssh promt see:
Password:
password:

sshpass hardcoded "assword:", FreeBSD sshd (pam) return "Password for user@host.local:", last tow patch in upstream add new key -P for custom password string.

Small Makefile fix, add USES autoreconf, need for build.
Comment 1 Andrey Fesenko 2015-11-25 20:35:50 UTC
Created attachment 163536 [details]
poudriere bulk -t log
Comment 2 Kurt Jaeger freebsd_committer freebsd_triage 2015-11-25 20:45:23 UTC
testbuilds fine on 11-amd64, 10.2a+i, 9.3a.
Comment 3 Kurt Jaeger freebsd_committer freebsd_triage 2015-11-25 20:47:23 UTC
See

https://lists.freebsd.org/pipermail/freebsd-stable/2015-November/083710.html

for context and pointers to related problem reports with salt, ansible.
Comment 4 Hung-Yi Chen 2015-11-27 07:12:03 UTC
Hmm...I'll test it.
Comment 5 Martin Wilke freebsd_committer freebsd_triage 2015-12-24 21:16:57 UTC
Hi,

Any update here?
Comment 6 Thomas Zander freebsd_committer freebsd_triage 2016-01-02 11:52:40 UTC
Maintainer timeout
Comment 7 commit-hook freebsd_committer freebsd_triage 2016-01-02 12:00:44 UTC
A commit references this bug:

Author: riggs
Date: Sat Jan  2 11:59:59 UTC 2016
New revision: 405067
URL: https://svnweb.freebsd.org/changeset/ports/405067

Log:
  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

Changes:
  head/security/sshpass/Makefile
  head/security/sshpass/files/
  head/security/sshpass/files/patch-configure.ac
  head/security/sshpass/files/patch-main.c
  head/security/sshpass/files/patch-sshpass.1
  head/security/sshpass/pkg-descr
Comment 8 Thomas Zander freebsd_committer freebsd_triage 2016-01-02 12:09:39 UTC
No quarterly merge since 2016Q1 branch is around the corner and this patch will be included.