summaryrefslogtreecommitdiffstats
path: root/plugins-scripts/check_disk_smb.pl
diff options
context:
space:
mode:
Diffstat (limited to 'plugins-scripts/check_disk_smb.pl')
-rwxr-xr-xplugins-scripts/check_disk_smb.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins-scripts/check_disk_smb.pl b/plugins-scripts/check_disk_smb.pl
index 7c81fc26..46987006 100755
--- a/plugins-scripts/check_disk_smb.pl
+++ b/plugins-scripts/check_disk_smb.pl
@@ -67,7 +67,7 @@ my $host = $1 if ($opt_H =~ /^([-_.A-Za-z0-9 ]+\$?)$/);
67($host) || usage("Invalid host: $opt_H\n"); 67($host) || usage("Invalid host: $opt_H\n");
68 68
69($opt_s) || ($opt_s = shift @ARGV) || usage("Share volume not specified\n"); 69($opt_s) || ($opt_s = shift @ARGV) || usage("Share volume not specified\n");
70my $share = $1 if ($opt_s =~ /^([-_.A-Za-z0-9]+\$?)$/); 70my $share = $1 if ($opt_s =~ /^([-_.A-Za-z0-9 ]+\$?)$/);
71($share) || usage("Invalid share: $opt_s\n"); 71($share) || usage("Invalid share: $opt_s\n");
72 72
73defined($opt_u) || ($opt_u = shift @ARGV) || ($opt_u = "guest"); 73defined($opt_u) || ($opt_u = shift @ARGV) || ($opt_u = "guest");