From 7c5e870d303690a6e6ec6bf520f9f77450e56246 Mon Sep 17 00:00:00 2001 From: Pav Lucistnik Date: Mon, 24 May 2004 20:40:04 +0000 Subject: - Fix argument parsing in check_mrtg PR: ports/67056 Submitted by: Michael Wayne --- net-mgmt/netsaint-plugins/Makefile | 2 +- net-mgmt/netsaint-plugins/files/patch-check_mrtg.c | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 net-mgmt/netsaint-plugins/files/patch-check_mrtg.c (limited to 'net-mgmt') diff --git a/net-mgmt/netsaint-plugins/Makefile b/net-mgmt/netsaint-plugins/Makefile index 4046b6b9731c..66625a0c3bc0 100644 --- a/net-mgmt/netsaint-plugins/Makefile +++ b/net-mgmt/netsaint-plugins/Makefile @@ -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 diff --git a/net-mgmt/netsaint-plugins/files/patch-check_mrtg.c b/net-mgmt/netsaint-plugins/files/patch-check_mrtg.c new file mode 100644 index 000000000000..7443d87e0836 --- /dev/null +++ b/net-mgmt/netsaint-plugins/files/patch-check_mrtg.c @@ -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; -- cgit v1.2.3