summaryrefslogtreecommitdiffstats
path: root/samba_wizard
diff options
context:
space:
mode:
authorAntoine Ginies <aginies@mandriva.com>2005-07-13 02:03:02 +0000
committerAntoine Ginies <aginies@mandriva.com>2005-07-13 02:03:02 +0000
commit574f965d7856f12d87b37e0be536473e34a5936d (patch)
treecf54deca2ff9fbe2b25ef77883048de92cb9506a /samba_wizard
parente0ddffc64d42a3523d16f7b11961ff63e8ef7c58 (diff)
downloaddrakwizard-574f965d7856f12d87b37e0be536473e34a5936d.tar
drakwizard-574f965d7856f12d87b37e0be536473e34a5936d.tar.gz
drakwizard-574f965d7856f12d87b37e0be536473e34a5936d.tar.bz2
drakwizard-574f965d7856f12d87b37e0be536473e34a5936d.tar.xz
drakwizard-574f965d7856f12d87b37e0be536473e34a5936d.zip
test value only if defined
Diffstat (limited to 'samba_wizard')
-rwxr-xr-xsamba_wizard/Sambashare.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/samba_wizard/Sambashare.pm b/samba_wizard/Sambashare.pm
index d81fcbe2..ddf4fabf 100755
--- a/samba_wizard/Sambashare.pm
+++ b/samba_wizard/Sambashare.pm
@@ -233,7 +233,7 @@ $o->{pages} = {
],
complete => sub {
map {
- if ($_ !~ /^\d+$/) {
+ if ($_ and $_ !~ /^\d+$/) {
$::in->ask_warn(N("Error"), N("Create mask, force directory mode and force create mode should be numeric. ie: 0755.")) and return 1;
}
} $o->{var}{wiz_share_create_mask}, $o->{var}{wiz_share_force_directory_mode}, $o->{var}{wiz_share_force_create_mode};