]> git.ipfire.org Git - thirdparty/openvpn.git/commit
CMake: fix broken daemonization and syslog functionality
authorLev Stipakov <lev@openvpn.net>
Wed, 20 Sep 2023 12:15:19 +0000 (14:15 +0200)
committerGert Doering <gert@greenie.muc.de>
Wed, 20 Sep 2023 20:30:37 +0000 (22:30 +0200)
commit8ae6c48d5d52dec8ec6e47cc1cfe89de9f2ffbcd
tree7f62b39ab6dee48327cef639ad3b032abaccca8a
parent0793eb105c5720c4eb31af71c9db81459439e510
CMake: fix broken daemonization and syslog functionality

While CMake is not the official way to build OpenVPN on Linux,
it still make sense to support it. Turns out that

  HAVE_SETSID, HAVE_OPENLOG and HAVE_SYSLOG

were not set by CMake configure, and --daemon and syslog
functionality was broken.

While on it, fix compiler error on unused return value of chdir().

Change-Id: I171d55da2be868d961caa1d4491e6f1ed10ebe8a
Signed-off-by: Lev Stipakov <lev@openvpn.net>
Acked-by: Arne Schwabe <arne-openvpn@rfc2549.org>
Acked-by: Frank Lichtenheld <frank@lichtenheld.com>
Message-Id: <20230920121519.177949-1-frank@lichtenheld.com>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg27045.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
CMakeLists.txt
config.h.cmake.in
src/compat/compat-daemon.c