From 1701d72ff9663b63f363e0c9feeb55bad6bcbe25 Mon Sep 17 00:00:00 2001 From: Mohammed Anas Date: Mon, 22 Jan 2024 15:18:27 +0000 Subject: [PATCH] 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`. --- tests/test-generated-hwdb.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test-generated-hwdb.sh b/tests/test-generated-hwdb.sh index b23f17c2..b1031802 100755 --- a/tests/test-generated-hwdb.sh +++ b/tests/test-generated-hwdb.sh @@ -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