mirror of
https://gitlab.freedesktop.org/libfprint/libfprint.git
synced 2025-11-15 07:38:12 +00:00
tests: make mktemp command call work with Chimera Linux's mktemp
On Chimera Linux, which uses FreeBSD's userland tools, the original call fails with the following error: mktemp: mkstemp failed on /tmp/libfprint-XXXXXX.hwdb: Invalid argument Moving the X's to the end of the template passed to `mktemp` fixes the error, and also works with GNU's `mktemp`.
This commit is contained in:
@@ -6,7 +6,7 @@ if [ ! -x "$UDEV_HWDB" ]; then
|
||||
fi
|
||||
|
||||
if [ "$UDEV_HWDB_CHECK_CONTENTS" = 1 ]; then
|
||||
generated_rules=$(mktemp "${TMPDIR:-/tmp}/libfprint-XXXXXX.hwdb")
|
||||
generated_rules=$(mktemp "${TMPDIR:-/tmp}/libfprint.hwdb.XXXXXX")
|
||||
else
|
||||
generated_rules=/dev/null
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user