diff options
author | pav <pav@FreeBSD.org> | 2004-05-25 04:40:04 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2004-05-25 04:40:04 +0800 |
commit | de48a22ebcb295b57619267711ad54d8e09ee506 (patch) | |
tree | 159d1c306913209630c143efa82a91d58debd25f | |
parent | 943ead9ecae836c950cc99e95723d48c63a24924 (diff) | |
download | freebsd-ports-gnome-de48a22ebcb295b57619267711ad54d8e09ee506.tar.gz freebsd-ports-gnome-de48a22ebcb295b57619267711ad54d8e09ee506.tar.zst freebsd-ports-gnome-de48a22ebcb295b57619267711ad54d8e09ee506.zip |
- Fix argument parsing in check_mrtg
PR: ports/67056
Submitted by: Michael Wayne <wayne@staff.msen.com>
-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 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; |