--- vpnc.orig Wed Mar 14 07:59:30 2007 +++ vpnc Wed Mar 14 10:32:49 2007 @@ -43,9 +43,12 @@ current="$vpnc_conf_dir/$config" # Start vpnc. - if ! $command $current $vpnc_flags; then - status=$? - echo "Running 'vpnc $current $vpnc_flags' failed." + $command --local-port 0 $current $vpnc_flags + status=$? + if [ $status != 0 ]; then + # VPNC does not print a newline after an error. + echo + echo "Running 'vpnc $current --local-port 0 $vpnc_flags' failed." return $status fi