1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-22 08:58:47 +00:00

- Fix argument parsing in check_mrtg

PR:		ports/67056
Submitted by:	Michael Wayne <wayne@staff.msen.com>
This commit is contained in:
Pav Lucistnik 2004-05-24 20:40:04 +00:00
parent e74e8c7b14
commit 7c5e870d30
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=109891
2 changed files with 16 additions and 1 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= netsaint-plugins
PORTVERSION= 1.2.9.4
PORTREVISION= 3
PORTREVISION= 4
CATEGORIES= net-mgmt
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= netsaintplug

View File

@ -0,0 +1,15 @@
--- plugins/check_mrtg.c.orig Mon May 24 22:29:35 2004
+++ plugins/check_mrtg.c Mon May 24 22:29:52 2004
@@ -338,10 +338,10 @@
usage("Invalid variable number\n");
break;
case 'w': /* critical time threshold */
- value_warning_threshold=strtoul(argv[5],NULL,10);
+ value_warning_threshold=strtoul(optarg,NULL,10);
break;
case 'c': /* warning time threshold */
- value_critical_threshold=strtoul(argv[6],NULL,10);
+ value_critical_threshold=strtoul(optarg,NULL,10);
break;
case 'l': /* label */
value_label=optarg;