monitoring-plugins/plugins-scripts
Holger Weiss 614e9dec5e Fix Debian bug #478942: Fragile argument passing
Fix some problems regarding the way check_disk_smb passes command line
arguments to smbclient(1).

| It runs:
|
| 	$res = qx/$smbclient "\/\/$host\/$share" $pass -W $workgroup \
| 	       -U $user $smbclientoptions -I $address -c ls/;
|
| [...]
|
| The documentation says that if the password is not passed, it
| defaults to "".  That is not true above, as $pass expands to
| nothing which leaves no argument at all (instead of an empty
| argument) so is different from providing with an empty password
| or with the -N option.
|
| Also, if the password starts with "-", you're in trouble, that's
| why -U $user%$pass may be prefered.
|
| Also, the doc says that if $user is not provided, then it
| defaults to "guest" but the problem is that if it is provided
| but empty, it is changed to "guest" as well, which prevents us
| from querying hosts that don't do user authentication.

[ http://bugs.debian.org/478942 ]

(Fixed by Stephane Chazelas, forwarded by Jan Wagner.)
2010-04-11 10:54:44 +02:00
..
t Fixed testcases for check_snmp, check_ifstatus and check_ifoperstatus when no snmp community is specified 2009-06-13 18:13:49 +02:00
check_breeze.pl Removing CVS/SVN tags and replacing with git-based versioning 2008-11-23 05:38:47 +00:00
check_disk_smb.pl Fix Debian bug #478942: Fragile argument passing 2010-04-11 10:54:44 +02:00
check_file_age.pl Removing CVS/SVN tags and replacing with git-based versioning 2008-11-23 05:38:47 +00:00
check_flexlm.pl Removing CVS/SVN tags and replacing with git-based versioning 2008-11-23 05:38:47 +00:00
check_ifoperstatus.pl renamed check_ifoperstatus' newly introdced -x to -P so it fits check_ifstatus 2009-06-11 17:24:52 +02:00
check_ifstatus.pl Fixed SNMPv3 behaviour of check_ifstatus. Added -P to define privprotocol (#2343438 - Robin Schroeder) 2009-06-11 17:20:55 +02:00
check_ircd.pl Fix check_ircd binding to wrong interface (#668778) 2009-09-19 02:08:51 -04:00
check_log.sh Removing CVS/SVN tags and replacing with git-based versioning 2008-11-23 05:38:47 +00:00
check_mailq.pl Typo fixes (Jan Wagner - SF 1878971) 2009-02-20 00:00:13 +00:00
check_mssql.pl Removing CVS/SVN tags and replacing with git-based versioning 2008-11-23 05:38:47 +00:00
check_netdns.pl Removing CVS/SVN tags and replacing with git-based versioning 2008-11-23 05:38:47 +00:00
check_ntp.pl Removing CVS/SVN tags and replacing with git-based versioning 2008-11-23 05:38:47 +00:00
check_oracle.sh Removing CVS/SVN tags and replacing with git-based versioning 2008-11-23 05:38:47 +00:00
check_rpc.pl Removing CVS/SVN tags and replacing with git-based versioning 2008-11-23 05:38:47 +00:00
check_sensors.sh Removing CVS/SVN tags and replacing with git-based versioning 2008-11-23 05:38:47 +00:00
check_wave.pl Removing CVS/SVN tags and replacing with git-based versioning 2008-11-23 05:38:47 +00:00
Makefile.am Allow custom versions with the release file... 2009-09-25 09:31:04 +00:00
subst.in Fix awk subst.in/subst script path error (#2722832 - Martin Foster) 2009-05-20 00:43:10 -04:00
utils.pm.in Removing CVS/SVN tags and replacing with git-based versioning 2008-11-23 05:38:47 +00:00
utils.sh.in Changed order in -V/--version output 2007-07-07 11:40:29 +00:00