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:
parent
e74e8c7b14
commit
7c5e870d30
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=109891
@ -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
|
||||
|
15
net-mgmt/netsaint-plugins/files/patch-check_mrtg.c
Normal file
15
net-mgmt/netsaint-plugins/files/patch-check_mrtg.c
Normal 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;
|
Loading…
Reference in New Issue
Block a user