diff options
-rwxr-xr-x | plugins-scripts/check_disk_smb.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins-scripts/check_disk_smb.pl b/plugins-scripts/check_disk_smb.pl index 8c275c8c..c3f33edb 100755 --- a/plugins-scripts/check_disk_smb.pl +++ b/plugins-scripts/check_disk_smb.pl @@ -68,11 +68,11 @@ my $host = $1 if ($opt_H =~ /([-_.A-Za-z0-9]+\$?)/); ($host) || usage("Invalid host: $opt_H\n"); ($opt_s) || ($opt_s = shift) || 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"); ($opt_u) || ($opt_u = shift) || ($opt_u = "guest"); -my $user = $1 if ($opt_u =~ /([-_.A-Za-z0-9]+)/); +my $user = $1 if ($opt_u =~ /([-_.A-Za-z0-9\\]+)/); ($user) || usage("Invalid user: $opt_u\n"); ($opt_p) || ($opt_p = shift) || ($opt_p = "guest"); |