summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntoine Ginies <aginies@mandriva.com>2007-05-31 11:21:16 +0000
committerAntoine Ginies <aginies@mandriva.com>2007-05-31 11:21:16 +0000
commit091b1f7518e5bfa307569b849cdc0d7d59499b33 (patch)
tree726795209f1640b89f001f79e8e14235c21ef3dc
parent1d37bfdbbe874abd6dcb5563eea19f531de09e1c (diff)
downloaddrakx-net-091b1f7518e5bfa307569b849cdc0d7d59499b33.tar
drakx-net-091b1f7518e5bfa307569b849cdc0d7d59499b33.tar.gz
drakx-net-091b1f7518e5bfa307569b849cdc0d7d59499b33.tar.bz2
drakx-net-091b1f7518e5bfa307569b849cdc0d7d59499b33.tar.xz
drakx-net-091b1f7518e5bfa307569b849cdc0d7d59499b33.zip
fix #30099 (draksambashare bad testing for existing shares)
-rwxr-xr-xbin/draksambashare3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/draksambashare b/bin/draksambashare
index e747d66..8dc8818 100755
--- a/bin/draksambashare
+++ b/bin/draksambashare
@@ -368,7 +368,8 @@ sub add_entry() {
my $comment = $addshare_comment->get_text;
my $test_dir = $addshare_dir->get_text;
foreach my $clef (keys %$samba) {
- if ($clef =~ /$share/) {
+ if ($clef =~
+ /\b$share\b/) {
err_dialog(N("Error"), N("Share with the same name already exist or share name empty, please choose another name.")) and return;
}
}