Commit b8031e36 authored by Otto Kekäläinen's avatar Otto Kekäläinen Committed by Daniel Black

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.
parent ab48901d
......@@ -15,7 +15,7 @@ function check_for_crashed_tables() {
# Checking for $? is unreliable so the size of the output is checked.
# Some table handlers like HEAP do not support CHECK TABLE.
tempfile=`tempfile`
tempfile=$(mktemp)
# We have to use xargs in this case, because a for loop barfs on the
# spaces in the thing to be looped over.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment