mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-21 23:23:13 +01:00
5e8ce7d073
If `AUTOMAKE` is set to `no` in the config file, it is normalized to the empty string. This leads to two errors if `find` is provided by Busybox. There is a conditional where `$AUTOMAKE` is not quoted when compared to `recursive` leading to the following error: /usr/share/shorewall/lib.cli-std: line 398: [: =: unary operator expected In contrast to the non-Busybox case, we don't check for an empty `$AUTOMAKE` before passing it as an argument to `-maxdepth`, leading to: /usr/bin/find: Expected a positive decimal integer argument to -maxdepth, but got -type Refactor the conditionals to eliminate code duplication and fix these two bugs. Link: https://gitlab.com/shorewall/code/-/issues/10 Signed-off-by: Jeremy Sowden <jeremy@azazel.net> |
||
---|---|---|
.. | ||
Actions | ||
configfiles | ||
Contrib | ||
Macros | ||
manpages | ||
Perl | ||
Samples | ||
actions.std | ||
configpath | ||
COPYING | ||
default.debian.systemd | ||
default.debian.sysvinit | ||
helpers | ||
init.alt.sh | ||
init.debian.sh | ||
init.fedora.sh | ||
init.sh | ||
init.slackware.shorewall.sh | ||
init.suse.sh | ||
INSTALL | ||
install.sh | ||
lib.cli-std | ||
logrotate | ||
Shorewall-targetname | ||
shorewall.service | ||
shorewall.service.debian | ||
sysconfig | ||
uninstall.sh |