From 72685e26e6cf5f19c840d8efaf54176ff12f7eca Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Sun, 30 Apr 2017 19:13:09 -0400 Subject: exec: Treat -1 from _SC_ARG_MAX as "unlimited" --- exec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exec.c b/exec.c index 510d2d1..e28b4fc 100644 --- a/exec.c +++ b/exec.c @@ -39,7 +39,7 @@ static size_t bfs_exec_arg_size(const char *arg) { static size_t bfs_exec_arg_max(const struct bfs_exec *execbuf) { long arg_max = sysconf(_SC_ARG_MAX); if (arg_max < 0) { - arg_max = _POSIX_ARG_MAX; + arg_max = BFS_EXEC_ARG_MAX; } // We have to share space with the environment variables -- cgit v1.2.3