Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 139454 - net-misc/openvpn: allow period in config name
Summary: net-misc/openvpn: allow period in config name
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Roy Marples (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-06 10:28 UTC by Ed Catmur
Modified: 2006-07-06 11:48 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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