diff options
author | Otto Kekäläinen <otto@kekalainen.net> | 2020-06-14 14:25:15 +0300 |
---|---|---|
committer | Daniel Black <daniel@mariadb.org> | 2020-07-30 10:36:39 +1000 |
commit | b8031e362af4d86ea4260c233ccb56dd18112691 (patch) | |
tree | 684001cf471d764ac98a3c83a7b26ba8d7ef3a5e /debian/additions | |
parent | ab48901d54f1d9002e786e0a01c6d26751e2cc32 (diff) | |
download | mariadb-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.
Diffstat (limited to 'debian/additions')
-rwxr-xr-x | debian/additions/debian-start.inc.sh | 2 |
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. |