FS#16095 - [openvpn] bash error in initscript
Attached to Project:
Arch Linux
Opened by Dieter Plaetinck (Dieter_be) - Tuesday, 08 September 2009, 11:26 GMT
Last edited by Thomas Bächler (brain0) - Thursday, 01 October 2009, 15:23 GMT
Opened by Dieter Plaetinck (Dieter_be) - Tuesday, 08 September 2009, 11:26 GMT
Last edited by Thomas Bächler (brain0) - Thursday, 01 October 2009, 15:23 GMT
|
Details
openvpn-2.1_rc19-2 (latest package from core)
grep '$!' /etc/rc.d/* /etc/rc.d/openvpn: /usr/sbin/openvpn --daemon --writepid "${STATEDIR}"/"$(basename "${cfg}" .conf)".pid --cd "${CFGDIR}" --config "${cfg}" || success=$! /etc/rc.d/openvpn-tapdev: /usr/sbin/openvpn --mktun --dev-type tap --dev ${tapdev} >/dev/null 2>&1 || success = $! /etc/rc.d/openvpn-tapdev: /usr/sbin/openvpn --rmtun --dev-type tap --dev ${tapdev} >/dev/null 2>&1 || success = $! All of these success variables should be assigned to '$?', not '$!'. (former: exit code of last command, latter: last argument of last command). Also, /etc/rc.d/openvpn-tapdev has the same problem as /etc/rc.d/openvpn had (http://mailman.archlinux.org/pipermail/arch-commits/2009-July/056937.html): it should be 'success=$?' |
This task depends upon
@fmjrey: Please do not post comments unrelated to the bug report. Also, instead of pointing to a forum thread please describe what the actual problem is.
but you forgot the 'success = $?' bug @ http://repos.archlinux.org/viewvc.cgi/openvpn/repos/testing-i686/openvpn-tapdev.rc?revision=52629&view=markup
Dieter