[vpnc-devel] svn commit: vpnc r424 - /branches/vpnc-nortel/pcf2vpnc

vpnc at unix-ag.uni-kl.de vpnc at unix-ag.uni-kl.de
Sat Sep 5 17:57:51 CEST 2009


Author: Antonio Borneo
Date: Sat Sep  5 17:57:51 2009
New Revision: 424

Log:
Wolfram Sang <wolfram at the-dreams.de>

Merge in Nortel branch the commit r359 by Joerg Mayer and Wolfram Sang.
Original comment:
Fix for Debian bug http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=456550
by Nicolas Duboc <nicolas at duboc.net>:

pcf2vpnc generates one space too many on the Domain line. This makes the
authentication fail.
Indeed vpnc is strict on spaces in its file format: "Note that all
strings start exactly one space after the keyword string" (README.gz file).


Modified:
    branches/vpnc-nortel/pcf2vpnc

Modified: branches/vpnc-nortel/pcf2vpnc
==============================================================================
--- branches/vpnc-nortel/pcf2vpnc (original)
+++ branches/vpnc-nortel/pcf2vpnc Sat Sep  5 17:57:51 2009
@@ -84,7 +84,7 @@
     my $text = "## generated by pcf2vpnc\n";
     foreach my $section (keys %$config) {
 	foreach my $item (keys %{ $config->{$section} }) {
-	    $text .= "$section $item ".$config->{$section}{$item}."\n";
+	    $text .= "$section ".($item ? "$item " : '').$config->{$section}{$item}."\n";
 	}
     }
     unless (defined $config->{Xauth}) {



More information about the vpnc-devel mailing list