Use of mktemp may fail on some platforms
Bug #1011766 reported by
Baron Schwartz
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Monitoring Plugins |
Fix Released
|
Medium
|
Baron Schwartz |
Bug Description
A bug related to mktemp was reported to Percona Toolkit (bug 986151). The reporter found that the mktemp pattern needs six X characters to work on his platform. It is possible that a similar limitation could affect the monitoring plugins.
In addition, we should not hardcode the temp path to /tmp, but respect the TEMP environment variable.
As a result, it's best if we just call 'mktemp' with no arguments.
Changed in percona-monitoring-plugins: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
It seems that $TMPDIR isn't reliably set. We'll keep /tmp hardcoded.