]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
auth-pam.c: add missing include limits.h
authorAntonio Quartulli <a@unstable.cc>
Thu, 21 Apr 2022 13:19:09 +0000 (15:19 +0200)
committerGert Doering <gert@greenie.muc.de>
Fri, 22 Apr 2022 11:22:39 +0000 (13:22 +0200)
On most systems limits.h is pulled in by some other header and thus no
error is ever triggered, but it's possible to find the right environment
which lackis this and prevents compiling auth-pam.c (possibly when using
LibreSSL).

Include the header explicitly as it includes the definition of PATH_MAX.

(note that this bug is fixed in Gentoo since 2020 by including a custom
patch, but apparently the issue was never reported upstream)

Reported-by: Michelangelo Scopelliti <kernelpanic@gmx.com>
Signed-off-by: Antonio Quartulli <a@unstable.cc>
Acked-by: Gert Doering <gert@greenie.muc.de>
Message-Id: <20220421131909.32053-1-a@unstable.cc>
URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg24136.html
Signed-off-by: Gert Doering <gert@greenie.muc.de>
src/plugins/auth-pam/auth-pam.c

index f893b51fe3b8f1dbb1045bf67543b51683b11e8e..7033944568815e3ef142cb9b4b49996dc721b98e 100644 (file)
@@ -47,6 +47,7 @@
 #include <fcntl.h>
 #include <signal.h>
 #include <syslog.h>
+#include <limits.h>
 #include "utils.h"
 
 #include <openvpn-plugin.h>