8bfe673
--- openvpn-2.1_rc9/sample-scripts/openvpn.init.orig	2008-06-13 02:54:58.000000000 -0500
8bfe673
+++ openvpn-2.1_rc9/sample-scripts/openvpn.init	2008-08-13 13:51:46.000000000 -0500
8bfe673
@@ -151,7 +151,11 @@
8bfe673
 		. $bn.sh
8bfe673
 	    fi
8bfe673
 	    rm -f $piddir/$bn.pid
8bfe673
-	    $openvpn --daemon --writepid $piddir/$bn.pid --config $c --cd $work
8bfe673
+            # Handle backward compatibility, see Red Hat Bugzilla ID #458594
8bfe673
+            if [ -z "$( grep '^[[:space:]]*script-security[[:space:]]' $c )" ]; then
8bfe673
+                script_security="--script-security 2"
8bfe673
+            fi
8bfe673
+	    $openvpn --daemon --writepid $piddir/$bn.pid --config $c --cd $work $script_security
8bfe673
 	    if [ $? = 0 ]; then
8bfe673
 		successes=1
8bfe673
 	    else