Bug#336781: subversion: commit-email.pl hook script fails when environment variable TEMP is not defined

Michael Nacey donjefe at donjefe.com
Tue Nov 1 13:44:56 UTC 2005


Package: subversion
Version: 1.2.3dfsg1-2
Severity: normal


On line 224, the commit-email.pl file has the line:

my $tmp_dir = ( -d $ENV{'TEMP'} ? $ENV{'TEMP'} : '/tmp' );

This fails when TEMP is not defined. The following code will fix the
problem:

my $tmp_dir = (($ENV{'TEMP'} && -d $ENV{'TEMP'}) ? $ENV{'TEMP'} : '/tmp'
);






-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.4.27-2-386
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages subversion depends on:
ii  db4.2-util                 4.2.52-18     Berkeley v4.2 Database Utilities
ii  libapr0                    2.0.54-5      the Apache Portable Runtime
ii  libc6                      2.3.5-6       GNU C Library: Shared libraries an
ii  libdb4.2                   4.2.52-18     Berkeley v4.2 Database Libraries [
ii  libexpat1                  1.95.8-3      XML parsing C library - runtime li
ii  libldap2                   2.1.30-11     OpenLDAP libraries
ii  libneon24                  0.24.7.dfsg-2 An HTTP and WebDAV client library
ii  libssl0.9.7                0.9.7e-3      SSL shared libraries
ii  libsvn0                    1.2.3dfsg1-2  shared libraries used by Subversio
ii  libxml2                    2.6.22-1      GNOME XML library
ii  patch                      2.5.9-2       Apply a diff file to an original
ii  zlib1g                     1:1.2.2-4     compression library - runtime

subversion recommends no packages.

-- no debconf information





More information about the pkg-subversion-maintainers mailing list