bird1: fix out of memory error when parsing /etc/config/bird{4,6} /etc/init.d/bird{4,6} start #921
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Maintainer: @rogerpueyo
Compile tested: x86_64 VirtualBox VM, OpenWrt snapshot 2022/11/16
Run tested: x86_64 VirtualBox VM, OpenWrt snapshot 2022/11/16
Description: the bird4-lib.sh and bird6-lib.sh implement a get_bool() function that collides with the one provided by /lib/functions.sh.
This patch renames the get_bool() functions implemented in the init.d helper files bird4-lib.sh and bird6-lib.sh to get_a_bool(), as well as all the calls to them. This way, we avoid colliding with the get_bool() function provided by /lib/functions.sh, which caused an out-of-memory error when parsing the UCI-based bird4/bird6 config.
Fixes #920.
Signed-off-by: Roger Pueyo Centelles roger.pueyo@guifi.net