commit:     0a3db7b186f0785d29c2c72c5ad6dbb93381ac35
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 27 09:00:05 2019 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Sat Apr 27 09:00:05 2019 +0000
URL:        https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=0a3db7b1

main.h: include limits.h for Linux PATH_MAX

make PATH_MAX available, such that the logic can properly use it (again)

This issue showed itself as a fortification error on Linux, because
_Q_PATH_MAX was defined as less than PATH_MAX making realpath_chk fail.

Bug: https://bugs.gentoo.org/684468
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 main.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/main.h b/main.h
index 32c995f..88412a8 100644
--- a/main.h
+++ b/main.h
@@ -19,6 +19,7 @@
 #include <string.h>
 #include <errno.h>
 #include <stdint.h>
+#include <limits.h>
 
 #include "i18n.h"
 #include "colors.h"

Reply via email to