[Nagiosplug-checkins] CVS: nagiosplug/plugins-scripts check_disk_smb.pl,1.6,1.7
Karl DeBisschop
kdebisschop at users.sourceforge.net
Wed Jan 15 21:20:03 CET 2003
Update of /cvsroot/nagiosplug/nagiosplug/plugins-scripts
In directory sc8-pr-cvs1:/tmp/cvs-serv950/plugins-scripts
Modified Files:
check_disk_smb.pl
Log Message:
accept $ for share and \\ for users
Index: check_disk_smb.pl
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins-scripts/check_disk_smb.pl,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** check_disk_smb.pl 28 Oct 2002 13:05:06 -0000 1.6
--- check_disk_smb.pl 16 Jan 2003 05:19:09 -0000 1.7
***************
*** 69,77 ****
($opt_s) || ($opt_s = shift) || usage("Share volume not specified\n");
! 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]+)/);
($user) || usage("Invalid user: $opt_u\n");
--- 69,77 ----
($opt_s) || ($opt_s = shift) || usage("Share volume not specified\n");
! 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\\]+)/);
($user) || usage("Invalid user: $opt_u\n");
More information about the Commits
mailing list