summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorGuillem Jover <guillem@hadrons.org>2019-07-20 04:24:32 +0200
committerMike Frysinger <vapier@gentoo.org>2022-11-12 21:39:08 +0700
commit65c5d72e311294dcf823a35bb195ed7241845537 (patch)
treee977550801b96e10929f2beac26987f7e4026a3f /tools
parent8bd8bf4becf543fccb415493285ef578c15e8c15 (diff)
downloadacl-65c5d72e311294dcf823a35bb195ed7241845537.tar.gz
Remove PATH_MAX usage which does not exist on GNU/Hurd
The Hurd is intended to have no hardcoded limits, and POSIX makes it possible for a system to not define PATH_MAX. Switch to the simpler solution which is to generate the constants at compile time.
Diffstat (limited to 'tools')
-rw-r--r--tools/parse.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/tools/parse.c b/tools/parse.c
index f052400..78ae49a 100644
--- a/tools/parse.c
+++ b/tools/parse.c
@@ -413,11 +413,6 @@ read_acl_comments(
mode_t *flags)
{
int c;
- /*
- 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 *line, *cp, *p;
int comments_read = 0;