Skip to content

Commit ce99cb3

Browse files
committed
configure: actually fix Alpine mktemp issue
Apparently busybox is _really_ picky, and string must really end in XXXXXX. So do that, and generate the .c and .o from that. Fixes: a46158b ("Make mktemp happy on Alpine Linux") Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 1b9d216 commit ce99cb3

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

configure

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,8 +478,9 @@ elif command -v /usr/sbin/bpftool >/dev/null 2>&1; then
478478
has_bpftool="yes"
479479
fi
480480

481-
tmp_bpf_c=$(mktemp /tmp/test_bpf_XXXXXX.c)
482-
tmp_bpf_o=$(mktemp /tmp/test_bpf_XXXXXX.o)
481+
tmp_bpf=$(mktemp /tmp/test_bpf_XXXXXX)
482+
tmp_bpf_c="$tmp_bpf".c
483+
tmp_bpf_o="$tmp_bpf".o
483484

484485
cat > "$tmp_bpf_c" << EOF
485486
int tmp = 0;

0 commit comments

Comments
 (0)