diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2017-04-30 19:13:09 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2017-04-30 19:13:09 -0400 |
commit | 72685e26e6cf5f19c840d8efaf54176ff12f7eca (patch) | |
tree | 15c0772d06bcce627293ff60138b12c67fecf36e | |
parent | 5a39c4e8aa164683a1534edd2aa926878b92eae7 (diff) | |
download | bfs-72685e26e6cf5f19c840d8efaf54176ff12f7eca.tar.xz |
exec: Treat -1 from _SC_ARG_MAX as "unlimited"
-rw-r--r-- | exec.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |