diff options
author | pav <pav@FreeBSD.org> | 2004-05-24 20:40:04 +0000 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2004-05-24 20:40:04 +0000 |
commit | de48a22ebcb295b57619267711ad54d8e09ee506 (patch) | |
tree | 159d1c306913209630c143efa82a91d58debd25f /net-mgmt/netsaint-plugins | |
parent | 943ead9ecae836c950cc99e95723d48c63a24924 (diff) | |
download | FreeBSD-ports-de48a22ebcb295b57619267711ad54d8e09ee506.zip FreeBSD-ports-de48a22ebcb295b57619267711ad54d8e09ee506.tar.gz |
- Fix argument parsing in check_mrtg
PR: ports/67056
Submitted by: Michael Wayne <wayne@staff.msen.com>
Diffstat (limited to 'net-mgmt/netsaint-plugins')
-rw-r--r-- | net-mgmt/netsaint-plugins/Makefile | 2 | ||||
-rw-r--r-- | net-mgmt/netsaint-plugins/files/patch-check_mrtg.c | 15 |
2 files changed, 16 insertions, 1 deletions
diff --git a/net-mgmt/netsaint-plugins/Makefile b/net-mgmt/netsaint-plugins/Makefile index 4046b6b..66625a0 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 0000000..7443d87 --- /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; |