[Nagiosplug-checkins] nagiosplug/plugins-root check_dhcp.c, 1.7, 1.8
Holger Weiss
hweiss at users.sourceforge.net
Sun Jan 28 22:46:43 CET 2007
- Previous message: [Nagiosplug-checkins] nagiosplug/plugins/t check_disk.t,1.16,1.17
- Next message: [Nagiosplug-checkins] nagiosplug/plugins check_apt.c, 1.9, 1.10 check_by_ssh.c, 1.40, 1.41 check_dig.c, 1.45, 1.46 check_dns.c, 1.54, 1.55 check_fping.c, 1.27, 1.28 check_game.c, 1.28, 1.29 check_hpjd.c, 1.34, 1.35 check_http.c, 1.98, 1.99 check_ide_smart.c, 1.12, 1.13 check_ldap.c, 1.34, 1.35 check_load.c, 1.32, 1.33 check_mrtg.c, 1.28, 1.29 check_mrtgtraf.c, 1.25, 1.26 check_mysql.c, 1.33, 1.34 check_mysql_query.c, 1.5, 1.6 check_nagios.c, 1.31, 1.32 check_nt.c, 1.45, 1.46 check_ntp.c, 1.12, 1.13 check_nwstat.c, 1.34, 1.35 check_overcr.c, 1.21, 1.22 check_pgsql.c, 1.34, 1.35 check_ping.c, 1.57, 1.58 check_procs.c, 1.56, 1.57 check_radius.c, 1.24, 1.25 check_real.c, 1.28, 1.29 check_smtp.c, 1.55, 1.56 check_snmp.c, 1.67, 1.68 check_ssh.c, 1.31, 1.32 check_swap.c, 1.57, 1.58 check_tcp.c, 1.81, 1.82 check_time.c, 1.28, 1.29 check_ups.c, 1.30, 1.31 check_users.c, 1.21, 1.22 negate.c, 1.26, 1.27 urlize.c, 1.21, 1.22 utils.c, 1.50, 1.51 utils.h, 1.32, 1.33
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/nagiosplug/nagiosplug/plugins-root
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv3332/plugins-root
Modified Files:
check_dhcp.c
Log Message:
Don't try to print `optarg' (which will be a NULL pointer) if an unknown
command line option was used, as this leads to a segfault on some
systems. The unknown option will be printed by getopt(3) anyway. So,
simply call print_usage() and exit UNKNOWN via the new usage5() instead.
Index: check_dhcp.c
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins-root/check_dhcp.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- check_dhcp.c 27 Jan 2007 16:37:34 -0000 1.7
+++ check_dhcp.c 28 Jan 2007 21:46:41 -0000 1.8
@@ -1091,7 +1091,7 @@
break;
case '?': /* help */
- usage2 (_("Unknown argument"), optarg);
+ usage5 ();
break;
default:
- Previous message: [Nagiosplug-checkins] nagiosplug/plugins/t check_disk.t,1.16,1.17
- Next message: [Nagiosplug-checkins] nagiosplug/plugins check_apt.c, 1.9, 1.10 check_by_ssh.c, 1.40, 1.41 check_dig.c, 1.45, 1.46 check_dns.c, 1.54, 1.55 check_fping.c, 1.27, 1.28 check_game.c, 1.28, 1.29 check_hpjd.c, 1.34, 1.35 check_http.c, 1.98, 1.99 check_ide_smart.c, 1.12, 1.13 check_ldap.c, 1.34, 1.35 check_load.c, 1.32, 1.33 check_mrtg.c, 1.28, 1.29 check_mrtgtraf.c, 1.25, 1.26 check_mysql.c, 1.33, 1.34 check_mysql_query.c, 1.5, 1.6 check_nagios.c, 1.31, 1.32 check_nt.c, 1.45, 1.46 check_ntp.c, 1.12, 1.13 check_nwstat.c, 1.34, 1.35 check_overcr.c, 1.21, 1.22 check_pgsql.c, 1.34, 1.35 check_ping.c, 1.57, 1.58 check_procs.c, 1.56, 1.57 check_radius.c, 1.24, 1.25 check_real.c, 1.28, 1.29 check_smtp.c, 1.55, 1.56 check_snmp.c, 1.67, 1.68 check_ssh.c, 1.31, 1.32 check_swap.c, 1.57, 1.58 check_tcp.c, 1.81, 1.82 check_time.c, 1.28, 1.29 check_ups.c, 1.30, 1.31 check_users.c, 1.21, 1.22 negate.c, 1.26, 1.27 urlize.c, 1.21, 1.22 utils.c, 1.50, 1.51 utils.h, 1.32, 1.33
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Commits
mailing list