summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2017-04-30 19:13:09 -0400
committerTavian Barnes <tavianator@tavianator.com>2017-04-30 19:13:09 -0400
commit72685e26e6cf5f19c840d8efaf54176ff12f7eca (patch)
tree15c0772d06bcce627293ff60138b12c67fecf36e
parent5a39c4e8aa164683a1534edd2aa926878b92eae7 (diff)
downloadbfs-72685e26e6cf5f19c840d8efaf54176ff12f7eca.tar.xz
exec: Treat -1 from _SC_ARG_MAX as "unlimited"
-rw-r--r--exec.c2
1 files changed, 1 insertions, 1 deletions
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