Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 139454

Summary: net-misc/openvpn: allow period in config name
Product: Gentoo Linux Reporter: Ed Catmur <ed>
Component: Current packagesAssignee: Roy Marples (RETIRED) <uberlord>
Status: RESOLVED FIXED    
Severity: minor    
Priority: High    
Version: 2006.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Ed Catmur 2006-07-06 10:28:58 UTC
/etc/init.d/openvpn has:

VPNDIR="/etc/openvpn"
VPN="${SVCNAME##*.}"
if [[ -n ${VPN} && ${SVCNAME} != "openvpn" ]]; then
        VPNPID="/var/run/openvpn.${VPN}.pid"
else
        VPNPID="/var/run/openvpn.pid"
fi
VPNCONF="${VPNDIR}/${VPN}.conf"

This prevents using period '.' in openvpn config names; VPN="${SVCNAME##*.}" strips everything up to the last period. This could be changed to VPN="${SVCNAME#*.}" to just strip the initial "openvpn.".
Comment 1 Roy Marples (RETIRED) gentoo-dev 2006-07-06 11:48:05 UTC
Fixed - sync up to get the new script. No rev bump.

Thanks