Actually, on further investigation, i've determined it's better to abuse TR
for this, changing the 'ports=' lines to include calls to tr to swap the
carriage returns for spaces.
ports="$(rpcinfo -p |awk "/tcp.*$service/"' { print $4 }' | uniq | tr '\n'
' ')"
it was complicated to debug, as restar
juri@ni:~/ImplicitCAD$ rpcinfo -p
program vers proto port service
104 tcp111 portmapper
103 tcp111 portmapper
102 tcp111 portmapper
104 udp111 portmapper
103 udp111 portmapper
102 udp
Upstream fix here:
https://github.com/arno-iptables-firewall/aif/commit/d145f9b665ae3573055470cd45c750e63e7bebf6
On 12-04-2020 21:05, Julia Longtin wrote:
Package: arno-iptables-firewall
Version: 2.1.0-2
Severity: normal
Tags: patch upstream
Dear Maintainer,
90-rpc.plugin does not see carriag
Thanks for the report. We will fix it upstream as well. Please note that
the patch you provided is not POSIX-compatible since $'\n' is not POSIX.
The correct fix should be something like:
IFS=" ,
"
cheers,
Arno
On 12-04-2020 21:05, Julia Longtin wrote:
Package: arno-iptables-firewall
Version
Hi Julia,
Thank you for filing this bug.
In addition, could you please attach a sample output of 'rpcinfo -p' to
have the full picture of why this happens?
Regards,
Sven
signature.asc
Description: This is a digitally signed message part
Package: arno-iptables-firewall
Version: 2.1.0-2
Severity: normal
Tags: patch upstream
Dear Maintainer,
90-rpc.plugin does not see carriage return as a line break when running rpcinfo
-p |awk "/tcp.*$service/"' { print $4 }' |uniq
this causes arno to fail to start if you have NFS services, and
6 matches
Mail list logo