util/lint: Fix execution on OpenBSD

util/lint/lint creates a file using mktemp.
mktemp on OpenBSD requires at least 6 X's, while only 5 are in the template.

Change-Id: I0b80214dd83d21e12e16a5002c68127a7ca2e41b
Signed-off-by: Piotr Kubaj <pkubaj@anongoth.pl>
Reviewed-on: https://review.coreboot.org/19745
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Philipp Deppenwiese <zaolin.daisuki@gmail.com>
This commit is contained in:
Piotr Kubaj 2017-05-17 21:57:57 +02:00 committed by Philipp Deppenwiese
parent 1b36c9de66
commit f3bd97cb89
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ if [ -z "$1" ] || [ "$1" != "lint" ] && [ "$1" != "lint-stable" ] && \
exit 1 exit 1
fi fi
LINTLOG=$(mktemp .tmpconfig.lintXXXXX); LINTLOG=$(mktemp .tmpconfig.lintXXXXXX);
XMLFILE="$(dirname "$0")/junit.xml" XMLFILE="$(dirname "$0")/junit.xml"
if [ "$1" = "lint-extended" ]; then if [ "$1" = "lint-extended" ]; then
XMLFILE="$(dirname "$0")/extended-junit.xml" XMLFILE="$(dirname "$0")/extended-junit.xml"