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:
parent
982042115b
commit
557b034200
@ -83,6 +83,8 @@ filter_socket()
|
||||
socket="$3"
|
||||
|
||||
ip="${socket%:*}"
|
||||
ip="${ip#\[}"
|
||||
ip="${ip%\]}"
|
||||
port="${socket##*:}"
|
||||
|
||||
if [ "$ok_ports" != "|" ] &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user