summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b6f64e1)
raw | patch | inline | side by side (parent: b6f64e1)
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | |
Thu, 16 Jan 2003 05:19:09 +0000 (05:19 +0000) | ||
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | |
Thu, 16 Jan 2003 05:19:09 +0000 (05:19 +0000) |
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@241 f882894a-f735-0410-b71e-b25c423dba1c
plugins-scripts/check_disk_smb.pl | patch | blob | history |
index 8c275c8ce25f95409d3cd7fb0674204812e66ce2..c3f33edb13f736918c02da811c0d20127454b96e 100755 (executable)
($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");