0001-auth-pam-c-add-missing-include-limits-h.patch 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. From 0fed64a91d894b46105bf7e8b16edea4d90ab70c Mon Sep 17 00:00:00 2001
  2. From: Antonio Quartulli <a@unstable.cc>
  3. Date: Thu, 21 Apr 2022 15:19:09 +0200
  4. Subject: [PATCH] auth-pam.c: add missing include limits.h
  5. On most systems limits.h is pulled in by some other header and thus no
  6. error is ever triggered, but it's possible to find the right environment
  7. which lackis this and prevents compiling auth-pam.c (possibly when using
  8. LibreSSL).
  9. Include the header explicitly as it includes the definition of PATH_MAX.
  10. (note that this bug is fixed in Gentoo since 2020 by including a custom
  11. patch, but apparently the issue was never reported upstream)
  12. Reported-by: Michelangelo Scopelliti <kernelpanic@gmx.com>
  13. Signed-off-by: Antonio Quartulli <a@unstable.cc>
  14. Acked-by: Gert Doering <gert@greenie.muc.de>
  15. Message-Id: <20220421131909.32053-1-a@unstable.cc>
  16. URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg24136.html
  17. Signed-off-by: Gert Doering <gert@greenie.muc.de>
  18. [Retrieved from:
  19. https://github.com/OpenVPN/openvpn/commit/0fed64a91d894b46105bf7e8b16edea4d90ab70c]
  20. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  21. ---
  22. src/plugins/auth-pam/auth-pam.c | 1 +
  23. 1 file changed, 1 insertion(+)
  24. diff --git a/src/plugins/auth-pam/auth-pam.c b/src/plugins/auth-pam/auth-pam.c
  25. index f893b51fe3..7033944568 100644
  26. --- a/src/plugins/auth-pam/auth-pam.c
  27. +++ b/src/plugins/auth-pam/auth-pam.c
  28. @@ -47,6 +47,7 @@
  29. #include <fcntl.h>
  30. #include <signal.h>
  31. #include <syslog.h>
  32. +#include <limits.h>
  33. #include "utils.h"
  34. #include <openvpn-plugin.h>