Package: websvn
Version: 1.61-12
Severity: normal
Tags: patch
When a directory contains spaces tarball creation fails. Patch that
simply quotes names included.
-- System Information:
Debian Release: 3.1
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages websvn depends on:
ii apache2-mpm-prefork [httpd] 2.0.53-5 traditional model for Apache2
ii debconf 1.4.30.11 Debian configuration management sy
ii libapache2-mod-php4 4:4.3.10-9 server-side, HTML-embedded scripti
ii php4 4:4.3.10-9 server-side, HTML-embedded scripti
ii po-debconf 0.8.22 manage translated Debconf template
ii subversion 1.1.3-2 advanced version control system (a
ii ucf 1.14 Update Configuration File: preserv
-- debconf information excluded
--- dl.php 2004-08-30 08:41:06.000000000 +0200
+++ /usr/share/websvn/dl.php 2005-03-29 19:48:28.561402068 +0200
@@ -59,14 +59,14 @@
if (empty($arcname))
$arcname = $rep->name;
- $svnrep->exportDirectory($path, $tmpname.DIRECTORY_SEPARATOR.$arcname, $rev);
+ $svnrep->exportDirectory($path, quote($tmpname.DIRECTORY_SEPARATOR.$arcname), $rev);
// Create the tar file
chdir($tmpname);
- exec($config->tar." -cf $arcname.tar $arcname");
+ exec($config->tar." -cf \"$arcname.tar\" \"$arcname\"");
// ZIP it up
- exec($config->gzip." $arcname.tar");
+ exec($config->gzip." \"$arcname.tar\"");
$size = filesize("$arcname.tar.gz");
// Give the file to the browser