Package: nagios-plugins-standard
Version: 1.4.12-5
Tags: patch
Severity: normal
Sharenames with spaces in them are legal. (At least, we have one on our
network here and it seems to work with everything.) The check should,
then, allow them. Spaces are already allowed in hostnames; the change to
allow them in sharenames is similar.
Adam Buchbinder
--- /usr/lib/nagios/plugins/check_disk_smb 2009-01-31 21:15:01.000000000 -0500
+++ check_disk_smb 2010-10-28 11:53:29.000000000 -0400
@@ -64,7 +64,7 @@
($host) || usage("Invalid host: $opt_H\n");
($opt_s) || ($opt_s = shift @ARGV) || usage("Share volume not specified\n");
-my $share = $1 if ($opt_s =~ /^([-_.A-Za-z0-9]+\$?)$/);
+my $share = $1 if ($opt_s =~ /^([-_.A-Za-z0-9 ]+\$?)$/);
($share) || usage("Invalid share: $opt_s\n");
defined($opt_u) || ($opt_u = shift @ARGV) || ($opt_u = "guest");