Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Aug 1999 17:14:17 -0400 (EDT)
From:      Matt Behrens <matt@zigg.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/13167: [PATCH] security/ssh package keygen fails when added with ssh2
Message-ID:  <199908152114.RAA41600@torgo.zigg.local>

next in thread | raw e-mail | index | archive | help

>Number:         13167
>Category:       ports
>Synopsis:       [PATCH] security/ssh package keygen fails when added with ssh2
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Aug 15 14:20:00 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     Matt Behrens
>Release:        FreeBSD 3.2-STABLE i386
>Organization:
zigg.com
>Environment:

FreeBSD torgo.zigg.local 3.2-STABLE FreeBSD 3.2-STABLE #2: Tue Aug 10 13:15:41 EDT 1999     matt@torgo.zigg.local:/usr/src/sys/compile/TORGO  i386

>Description:

When packages are made of security/ssh and security/ssh2, the key
generation that is part of the installation of the ssh-1.2.27
package will fail because it tries to call ssh-keygen, which is a
symlink to ssh-keygen2.

>How-To-Repeat:

On system A:

a# cd /usr/ports/security/ssh2
a# make package				(ssh pulled in as dependency)
a# cd ../ssh
a# make package

FTP packages over to system B:

b# pkg_add ssh-2.0.13.tgz		(ssh pulled in as dependency)

>Fix:
	
This patch changes the PLIST to call ssh-keygen1 instead of
ssh-keygen.  It does not fix everything, however -- ssh-1.2.27.tgz
will be packaged with symlinks that point to programs from the ssh2
suite, which is not the desired behavior on a system that does not
have ssh2.

*** pkg/PLIST.broken	Sun Jul 18 14:46:37 1999
--- pkg/PLIST	Sun Aug 15 17:05:18 1999
***************
*** 18,21 ****
  etc/sshd_config
  sbin/sshd1
  sbin/sshd
! @exec if [ ! -f %D/etc/ssh_host_key ]; then echo "Generating a secret host key.." ; %D/bin/ssh-keygen -N "" -f %D/etc/ssh_host_key; fi
--- 18,21 ----
  etc/sshd_config
  sbin/sshd1
  sbin/sshd
! @exec if [ ! -f %D/etc/ssh_host_key ]; then echo "Generating a secret host key.." ; %D/bin/ssh-keygen1 -N "" -f %D/etc/ssh_host_key; fi

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199908152114.RAA41600>