summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOtto Kekäläinen <otto@kekalainen.net>2020-06-14 14:25:15 +0300
committerDaniel Black <daniel@mariadb.org>2020-07-30 10:36:39 +1000
commitb8031e362af4d86ea4260c233ccb56dd18112691 (patch)
tree684001cf471d764ac98a3c83a7b26ba8d7ef3a5e
parentab48901d54f1d9002e786e0a01c6d26751e2cc32 (diff)
downloadmariadb-git-b8031e362af4d86ea4260c233ccb56dd18112691.tar.gz
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.
-rwxr-xr-xdebian/additions/debian-start.inc.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/additions/debian-start.inc.sh b/debian/additions/debian-start.inc.sh
index fa5b1299bdc..dfb756225b0 100755
--- a/debian/additions/debian-start.inc.sh
+++ b/debian/additions/debian-start.inc.sh
@@ -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.