make pidfile writing work again
commit62cd6078c7635e5005f4c09e12727dc8b09c8944
authorAntonio Borneo <Antonio Borneo@315857ad-0bdb-0310-b42e-dec37551a5f0>
Sun, 1 Dec 2013 12:23:32 +0000 (1 12:23 +0000)
committerAntonio Borneo <Antonio Borneo@315857ad-0bdb-0310-b42e-dec37551a5f0>
Sun, 1 Dec 2013 12:23:32 +0000 (1 12:23 +0000)
treeca6293cd12587acd4ca357ba5b6cc43e3cd961f4
parent117f8cd568d4eefa8c0932471538cd292003009e
make pidfile writing work again

Patch present in openSUSE package.

/var/run can be cleared on every boot (tmpfs) and thus folder
/var/run/vpnc would not exist.
Just use /var/run/vpnc.pid instead of /var/run/vpnc/pid, vpnc
needs to run as root anyway, so this should be fine.

vpnc-script is still using /var/run/vpnc for other stuff (resolv.conf
backup etc) but creates the directory on demand, so no harm is done
there.
This patch fix the case of vpnc run without executing the default
vpnc-script

Author: Stefan Seyfried <seife+obs@b1-systems.com>
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
git-svn-id: https://svn.unix-ag.uni-kl.de/vpnc/trunk@535 315857ad-0bdb-0310-b42e-dec37551a5f0
config.c
vpnc-disconnect