cluster: STABLE3 - resource-agents: Fix samba netbios name

Lon Hohberger lon at fedoraproject.org
Mon Nov 9 22:27:53 UTC 2009


Gitweb:        http://git.fedorahosted.org/git/cluster.git?p=cluster.git;a=commitdiff;h=c075594bd04b2523299029d0e85ad5c935ae502a
Commit:        c075594bd04b2523299029d0e85ad5c935ae502a
Parent:        49a75c2c054ac32ba41072687921663e52bd0f59
Author:        Lon Hohberger <lhh at redhat.com>
AuthorDate:    Mon Nov 9 17:12:59 2009 -0500
Committer:     Lon Hohberger <lhh at redhat.com>
CommitterDate: Mon Nov 9 17:13:40 2009 -0500

resource-agents: Fix samba netbios name

Spaces should not be allowed in the NetBIOS name.

Resolves: Fedora #533971

Signed-off-by: Lon Hohberger <lhh at redhat.com>
---
 rgmanager/src/resources/samba.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/rgmanager/src/resources/samba.sh b/rgmanager/src/resources/samba.sh
index 81fd8cb..f7c134b 100644
--- a/rgmanager/src/resources/samba.sh
+++ b/rgmanager/src/resources/samba.sh
@@ -69,7 +69,7 @@ generate_config_file()
 	echo "pid directory = \"$SAMBA_pid_dir\"" >> "$generated_file"
 	echo "interfaces = $ip_addresses" >> "$generated_file"
 	echo "bind interfaces only = Yes" >> "$generated_file"
-	echo "netbios name = \"$OCF_RESKEY_name\"" >> "$generated_file"
+	echo "netbios name = ${OCF_RESKEY_name/ /_}" >> "$generated_file"
 	echo >> "$generated_file"	
 	sed 's/^[[:space:]]*pid directory/### pid directory/i;s/^[[:space:]]*interfaces/### interfaces/i;s/^[[:space:]]*bind interfaces only/### bind interfaces only/i;s/^[[:space:]]*netbios name/### netbios name/i' \
 	     < "$original_file" >> "$generated_file"


More information about the cluster-commits mailing list