[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#292157: ssl-cert: fails if output file is a relative path



Package: ssl-cert
Version: 1.0-11
Severity: normal


the proble is with the hash symlink part. It first cd's into the
directory part of the output file, then links it with the generated
hash file, which takes as input the output file. It works as long as
$output is a full path, not a relative one.

This patch solves it:

--- make-ssl-cert~      2005-01-07 17:17:34.000000000 +0100
+++ make-ssl-cert       2005-01-25 13:49:11.000000000 +0100
@@ -93,7 +93,8 @@
 
 # hash symlink
 cd `dirname $output`
-ln -sf `basename $output` `openssl x509 -hash -noout -in $output`
+certfile=`basename $output`
+ln -sf $certfile `openssl x509 -hash -noout -in $certfile`
 
 rm -f $TMPFILE
 



-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.10-1-686
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)

Versions of packages ssl-cert depends on:
ii  debconf [debconf-2.0]         1.4.42     Debian configuration management sy
ii  openssl                       0.9.7e-3   Secure Socket Layer (SSL) binary a

-- debconf information excluded



Reply to: