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

ctdb-scripts: Do not replace commas with spaces in "smb ports" list

The list changed back to space-separated in commit
93448f4be9, so simplify the code a
little.

Signed-off-by: Martin Schwenke <mschwenke@ddn.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
This commit is contained in:
Martin Schwenke 2023-02-14 12:36:11 +11:00 committed by Volker Lendecke
parent 029dddfb79
commit 9a04ca1e1c
2 changed files with 2 additions and 3 deletions

View File

@ -123,8 +123,7 @@ list_samba_shares()
list_samba_ports()
{
testparm_cat --parameter-name="smb ports" |
sed -e 's@,@ @g'
testparm_cat --parameter-name="smb ports"
}
###########################

View File

@ -61,7 +61,7 @@ security)
exit 0
;;
smb*ports)
echo "445, 139"
echo "445 139"
exit 0
;;
?*) not_implemented "--parameter-name=$parameter" ;;