1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-18 06:04:06 +03:00

ctdb-tests: Ensure ss stub handles square brackets around addresses

It isn't unreasonable for unit test cases to use square brackets in
their input.

Signed-off-by: Martin Schwenke <mschwenke@ddn.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jerry Heyman <jheyman@ddn.com>
This commit is contained in:
Martin Schwenke 2023-10-27 11:06:23 +11:00 committed by Martin Schwenke
parent 982042115b
commit 557b034200

View File

@ -83,6 +83,8 @@ filter_socket()
socket="$3"
ip="${socket%:*}"
ip="${ip#\[}"
ip="${ip%\]}"
port="${socket##*:}"
if [ "$ok_ports" != "|" ] &&