Details
Description
getconf ARG_MAX is used to size static arrays inside Main.cc and LocalManager.cc by way of the configure script. However, getconf ARG_MAX is returning inconsistent results based on how it is run. Below is an example from the environment above:
$ cat Makefile all: getconf ARG_MAX $ make getconf ARG_MAX 4611686018427387903 $ getconf ARG_MAX 2097152
The results is that static arrays based on ARG_MAX in Main.cc and LocalManager.cc can vary based on whether the build is done manually or via make based packaging scripts. In the case of an outlandish return value, this can cause failure at link time.