--- acl-2.2.47/setfacl/parse.c 2007-09-11 04:00:49.000000000 +0200 +++ acl-2.2.47/setfacl/parse.c-gil 2008-11-30 04:20:38.000000000 +0100 @@ -24,6 +24,7 @@ #include #include #include +#include #include #include @@ -412,7 +413,12 @@ gid_t *gid_p) { int c; - char linebuf[1024]; + /* + Max PATH_MAX bytes even for UTF-8 path names and additional 9 + bytes for "# file: ".Not a good solution but for now it is the + best I can do without too much impact on the code. [tw] + */ + char linebuf[(4*PATH_MAX)+9]; char *cp; char *p; int comments_read = 0;