musl-utils: getconf is broken after db244b3b
After getconf.c is rewritten in commit db244b3b, it no longer prints the values of valid sysconf variables given as arguments (e.g. ARG_MAX), instead printing nothing and exiting with status code 0.
In particular, this breaks the start-tor-browser script of the tor browser bundle in a confusing way, as it tests the value of $(getconf LONG_BIT) to see if it is running on the architecture it was compiled for.
(from redmine: issue id 3266, created on 2014-07-29, closed on 2015-12-09)
- Changesets:
- Revision 48b16204 by Timo Teräs on 2014-07-30T09:00:58Z:
main/musl: fix getconf to print single values
It is not valid to use positional parameters without using them all.
Otherwise the proper argument size cannot be determined. ref #3266
- Revision fad5f035 by Timo Teräs on 2014-07-30T09:04:05Z:
main/musl: fix getconf to print single values
It is not valid to use positional parameters without using them all.
Otherwise the proper argument size cannot be determined. fixes #3266
(cherry picked from commit 48b16204aeeda5bc1f87e49c6b8e23d9abb07c73)