Skip to content

Commit b8031e3

Browse files
ottokgrooverdan
authored andcommitted
Use mktemp instead of deprecated tempfile
This fixes the warning emitted during `/etc/init.d/mariadb restart`: WARNING: tempfile is deprecated; consider using mktemp instead.
1 parent ab48901 commit b8031e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

debian/additions/debian-start.inc.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function check_for_crashed_tables() {
1515

1616
# Checking for $? is unreliable so the size of the output is checked.
1717
# Some table handlers like HEAP do not support CHECK TABLE.
18-
tempfile=`tempfile`
18+
tempfile=$(mktemp)
1919

2020
# We have to use xargs in this case, because a for loop barfs on the
2121
# spaces in the thing to be looped over.

0 commit comments

Comments
 (0)