diff options
author | Antoine Ginies <aginies@mandriva.com> | 2007-05-31 11:20:22 +0000 |
---|---|---|
committer | Antoine Ginies <aginies@mandriva.com> | 2007-05-31 11:20:22 +0000 |
commit | 10f99cd66f7388b9b5e26ff839e56af6c640cd8c (patch) | |
tree | 78f40453e4f0e957399b25abbabbb66b83d88f9b | |
parent | e80482ca316937508ffd36d58ec52a68c95c3fe6 (diff) | |
download | drakx-net-10f99cd66f7388b9b5e26ff839e56af6c640cd8c.tar drakx-net-10f99cd66f7388b9b5e26ff839e56af6c640cd8c.tar.gz drakx-net-10f99cd66f7388b9b5e26ff839e56af6c640cd8c.tar.bz2 drakx-net-10f99cd66f7388b9b5e26ff839e56af6c640cd8c.tar.xz drakx-net-10f99cd66f7388b9b5e26ff839e56af6c640cd8c.zip |
fix #30099 (draksambashare bad testing for existing shares)
-rwxr-xr-x | bin/draksambashare | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/draksambashare b/bin/draksambashare index e747d66..0488ac1 100755 --- a/bin/draksambashare +++ b/bin/draksambashare @@ -368,7 +368,7 @@ 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; } } |