Bug 498348

Summary: [PATCH] service openvpn start fails because $conf.sh isn't sourced properly
Product: [Fedora] Fedora Reporter: Alexandre Oliva <oliva>
Component: openvpnAssignee: Steven Pritchard <steve>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 11CC: hmmsjan, steve
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: 2.1.1-2.fc11 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-01-14 01:23:27 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Alexandre Oliva 2009-04-30 00:54:09 UTC
Description of problem:
/etc/init.d/openvpn contains:

        for c in `/bin/ls *.conf 2>/dev/null`; do
            bn=${c%%.conf}
            if [ -f "$bn.sh" ]; then
                . $bn.sh                          # this is line 153
            fi

This fails unless root's PATH contains “.”, because bash searches the PATH in order to source pathnames without slashes.

When source fails, openvpn fails to start any configuration for which a .sh file exists.

The fix is trivial: make line 153 “. ./$bn.sh”

Version-Release number of selected component (if applicable):
openvpn-2.1-0.32.rc15.fc11

Comment 1 Bug Zapper 2009-06-09 14:50:12 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 11 development cycle.
Changing version to '11'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 2 Gwyn Ciesla 2010-01-04 19:03:40 UTC
*** Bug 539448 has been marked as a duplicate of this bug. ***

Comment 3 Fedora Update System 2010-01-05 15:26:44 UTC
openvpn-2.1.1-2.fc12 has been submitted as an update for Fedora 12.
http://admin.fedoraproject.org/updates/openvpn-2.1.1-2.fc12

Comment 4 Fedora Update System 2010-01-07 01:00:27 UTC
openvpn-2.1.1-2.fc12 has been pushed to the Fedora 12 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update openvpn'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F12/FEDORA-2010-0249

Comment 5 Fedora Update System 2010-01-14 01:21:19 UTC
openvpn-2.1.1-2.fc11 has been pushed to the Fedora 11 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update openvpn'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2010-0504

Comment 6 Fedora Update System 2010-01-14 01:23:09 UTC
openvpn-2.1.1-2.fc12 has been pushed to the Fedora 12 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2010-01-28 01:02:36 UTC
openvpn-2.1.1-2.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.