The rc.d script always returns 0, even when establishing the connection fails. This is cause by the following code: if ! $command --local-port 0 $current $vpnc_flags; then status=$? ... error handling ... return $status fi ! $command ... returns 0 in case of an error, which is what will be assigned to status, instead of the error code issued by vpnc. Fix: Patch attached with submission follows:
Responsible Changed From-To: freebsd-ports-bugs->ehaupt Over to maintainer (via the GNATS Auto Assign Tool)
ehaupt 2010-03-30 16:36:59 UTC FreeBSD ports repository Modified files: security/vpnc Makefile security/vpnc/files vpnc.in Log: Fix rc.d script return value PR: 145207 Submitted by: Dominic Fandrey <kamikaze@bsdforen.de> Revision Changes Path 1.44 +1 -1 ports/security/vpnc/Makefile 1.7 +3 -2 ports/security/vpnc/files/vpnc.in _______________________________________________ cvs-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/cvs-all To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
State Changed From-To: open->closed Committed, thanks!