1 |
commit: 0a3db7b186f0785d29c2c72c5ad6dbb93381ac35 |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Apr 27 09:00:05 2019 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Apr 27 09:00:05 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/portage-utils.git/commit/?id=0a3db7b1 |
7 |
|
8 |
main.h: include limits.h for Linux PATH_MAX |
9 |
|
10 |
make PATH_MAX available, such that the logic can properly use it (again) |
11 |
|
12 |
This issue showed itself as a fortification error on Linux, because |
13 |
_Q_PATH_MAX was defined as less than PATH_MAX making realpath_chk fail. |
14 |
|
15 |
Bug: https://bugs.gentoo.org/684468 |
16 |
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org> |
17 |
|
18 |
main.h | 1 + |
19 |
1 file changed, 1 insertion(+) |
20 |
|
21 |
diff --git a/main.h b/main.h |
22 |
index 32c995f..88412a8 100644 |
23 |
--- a/main.h |
24 |
+++ b/main.h |
25 |
@@ -19,6 +19,7 @@ |
26 |
#include <string.h> |
27 |
#include <errno.h> |
28 |
#include <stdint.h> |
29 |
+#include <limits.h> |
30 |
|
31 |
#include "i18n.h" |
32 |
#include "colors.h" |