]> git.ipfire.org Git - people/arne_f/ipfire-3.x.git/blame - acl/patches/acl-2.2.47-path_max.patch
Move all packages to root.
[people/arne_f/ipfire-3.x.git] / acl / patches / acl-2.2.47-path_max.patch
CommitLineData
a8e75dea
MT
1--- acl-2.2.39/setfacl/parse.c.path_max 2006-06-20 02:51:25.000000000 -0400
2+++ acl-2.2.39/setfacl/parse.c 2006-07-05 15:27:21.000000000 -0400
3@@ -24,6 +24,7 @@
4 #include <stdlib.h>
5 #include <string.h>
6 #include <errno.h>
7+#include <limits.h>
8
9 #include <sys/types.h>
10 #include <sys/stat.h>
11@@ -412,7 +413,12 @@
12 gid_t *gid_p)
13 {
14 int c;
15- char linebuf[1024];
16+ /*
17+ Max PATH_MAX bytes even for UTF-8 path names and additional 9
18+ bytes for "# file: ".Not a good solution but for now it is the
19+ best I can do without too much impact on the code. [tw]
20+ */
21+ char linebuf[(4*PATH_MAX)+9];
22 char *cp;
23 char *p;
24 int comments_read = 0;