diff options
author | Alberto Gonzalez Iniesta <agi@inittab.org> | 2014-05-14 13:06:35 +0200 |
---|---|---|
committer | Alberto Gonzalez Iniesta <agi@inittab.org> | 2014-05-14 13:06:35 +0200 |
commit | 1aaf6c6f47f79d989550bec9fcfddd0aa38505ee (patch) | |
tree | e6ba693e1e205020e7819179d9ecb118067d74be /debian/patches/better_systemd_detection.patch | |
parent | 124ae2dcf8fa730dd12a5763a47ce3898c010e4a (diff) |
Add patch to fix #747265, refresh patches
Diffstat (limited to 'debian/patches/better_systemd_detection.patch')
-rw-r--r-- | debian/patches/better_systemd_detection.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/debian/patches/better_systemd_detection.patch b/debian/patches/better_systemd_detection.patch new file mode 100644 index 0000000..0270075 --- /dev/null +++ b/debian/patches/better_systemd_detection.patch @@ -0,0 +1,25 @@ +Description: Improved systemd detection for password prompt +Author: Martin Pitt <martinpitt@gnome.org> +Bug-Debian: http://bugs.debian.org/747265 +Bug: https://community.openvpn.net/openvpn/ticket/274 +Origin: upstream, https://community.openvpn.net/openvpn/attachment/ticket/274/0001-Update-systemd-check-to-current-upstream-version.patch +Index: openvpn/src/openvpn/console.c +=================================================================== +--- openvpn.orig/src/openvpn/console.c 2012-11-05 16:29:30.000000000 +0100 ++++ openvpn/src/openvpn/console.c 2014-05-14 13:00:24.253185771 +0200 +@@ -145,13 +145,8 @@ + { + struct stat a, b; + +- /* We simply test whether the systemd cgroup hierarchy is +- * mounted */ +- +- return (lstat("/sys/fs/cgroup", &a) == 0) +- && (lstat("/sys/fs/cgroup/systemd", &b) == 0) +- && (a.st_dev != b.st_dev); +- ++ /* mirror what upstream sd_booted() does */ ++ return (access("/run/systemd/system", F_OK) >= 0); + } + + static bool |