#1032357 shorewall6: sysvinit script for Shorewall6 is broken

#1032357#5
Date:
2023-03-04 17:01:26 UTC
From:
To:
Dear Maintainer,

I've installed and configured Shorewall6 (5.2.3.4-1) on a Debian bullseye
using sysvinit.

However, when starting the service using the provided /etc/init.d/shorewall6
script (i.e., running "/etc/init.d/shorewall6 start"), I got this error:

    /etc/init.d/shorewall6: 20: test: /sbin/shorewall: unexpected operator

and Shorewall6 did not start.

This is due to a bug on line 15 of this script: the Shorewall6 executable
is defined as

    SRWL='/sbin/shorewall -6'

and then its availability is tested on line 20 with

    test -x $SRWL || exit 0

which will indeed fail with the error reported above.

This was fixed upstream in the following commit:
https://gitlab.com/shorewall/code/-/commit/b7f2d1b22e42a67f75de475b28ad04d9dca81bf8

Would it be possible to cherry-pick this commit into the versions packaged
in Debian, please?

Thank you very much in advance!

Glop

#1032357#10
Date:
2023-03-05 20:14:03 UTC
From:
To:
This has been fixed in the version of Shorewall in the upcoming release,
Bookworm.

J.

#1032357#19
Date:
2023-04-10 10:26:53 UTC
From:
To:
close 1032357 5.2.8-1~exp1
thanks