ports/154688: munin-node plugin http_loadtime wrong usage of mktemp

[ Available lists | Index of freebsd-ports-bugs | Month of Feb 2011 | Week of 11 Feb 2011 | Raw email | View thread | Wrap long lines | Reply | Tag ]
From
Oliver Brandmler <ob@e-gitt.net>
Date
11 Feb 2011 15:50:08
Subject
ports/154688: munin-node plugin http_loadtime wrong usage of mktemp
Message-ID
201102111542.p1BFg1sa066309@red.freebsd.org


[ Hide this part ]
 
>Number: 154688
>Category: ports
>Synopsis: munin-node plugin http_loadtime wrong usage of mktemp
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Fri Feb 11 15:50:07 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Oliver Brandmler
>Release: FreeBSD 8-STABLE
>Organization:
>Environment:
>Description:
The plugin http_loadtime uses:

TMPDIR=`mktemp -d` || exit 1

in one place, where for FreeBSD it needs to be (f.e.)

TMPDIR=`mktemp -d /tmp/munin.http_loadtime.XXXXXX` || exit 1

so the plugin doesn't work out of the box.
>How-To-Repeat:
install munin-node and activate the plugin
>Fix:
TMPDIR=`mktemp -d` || exit 1

replaced by

TMPDIR=`mktemp -d /tmp/munin.http_loadtime.XXXXXX` || exit 1

>Release-Note:
>Audit-Trail:
>Unformatted:

Elapsed time: 0.205 seconds