We can't only use 'server smb transports' as in ci runs
the 'testparm' binary is from the distribution and likely
be in older Samba version.
So we still fallback to 'smb ports'.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
list_samba_ports()
{
- testparm_get "smb ports"
+ {
+ testparm_get "server smb transports"
+ testparm_get "smb ports"
+ # only | head -1 would cause a broken pipe for the 2nd command
+ } | head -2 | head -1
}
normalize_transports_to_tcp_ports()