mirror of
https://github.com/monitoring-plugins/monitoring-plugins.git
synced 2026-04-15 22:00:06 -04:00
accept $ for share and \\ for users
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@241 f882894a-f735-0410-b71e-b25c423dba1c
This commit is contained in:
parent
b6f64e1290
commit
2350599a4c
1 changed files with 2 additions and 2 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in a new issue