ports/67056: getopt error in netsaint-plugins/check_mrtg
Michael Wayne
wayne at staff.msen.com
Sat May 22 18:41:07 UTC 2004
>Number: 67056
>Category: ports
>Synopsis: getopt error in netsaint-plugins/check_mrtg
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sat May 22 11:40:26 PDT 2004
>Closed-Date:
>Last-Modified:
>Originator: Michael Wayne
>Release: 4.8-RELEASE-p17
>Organization:
Msen, Inc.
>Environment:
FreeBSD 4.8-RELEASE-p17
>Description:
check_mrtg was using a strange combination of argument positions and optarg. Trivial fix enclosed, please apply this path to ports tree.
>How-To-Repeat:
build it.
>Fix:
Replace the 2 argv references with getopt as below (spaces removed) but it's a small change.
341c341
< value_warning_threshold=strtoul(argv[5],NULL,10);
---
> value_warning_threshold=strtoul(optarg,NULL,10);
344c344
< value_critical_threshold=strtoul(argv[6],NULL,10);
---
> value_critical_threshold=strtoul(optarg,NULL,10);
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list