diff options
author | Matthew Radcliffe <mradcliffe@softpixel.com> | 2018-01-08 22:28:55 -0500 |
---|---|---|
committer | Matthew Radcliffe <mradcliffe@softpixel.com> | 2018-01-08 22:28:55 -0500 |
commit | 4454f031364fb4acc75108b0d272acd8fa87cb15 (patch) | |
tree | a0dc7d65135b4340261686a40d768d9a46e2deba | |
parent | 949f316f89f8a7d8e6c7dee5a3552b998ab928d2 (diff) | |
download | spectre-meltdown-checker-4454f031364fb4acc75108b0d272acd8fa87cb15.tar.lz spectre-meltdown-checker-4454f031364fb4acc75108b0d272acd8fa87cb15.tar.xz spectre-meltdown-checker-4454f031364fb4acc75108b0d272acd8fa87cb15.zip |
Increases tmp directory uniqueness to 6 characters to support Slackware
-rwxr-xr-x | spectre-meltdown-checker.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spectre-meltdown-checker.sh b/spectre-meltdown-checker.sh index b84804b..9c64ae1 100755 --- a/spectre-meltdown-checker.sh +++ b/spectre-meltdown-checker.sh @@ -65,7 +65,7 @@ extract_vmlinux() { [ -n "$1" ] || return 1 # Prepare temp files: - vmlinuxtmp="$(mktemp /tmp/vmlinux-XXX)" + vmlinuxtmp="$(mktemp /tmp/vmlinux-XXXXXX)" trap "rm -f $vmlinuxtmp" EXIT # Initial attempt for uncompressed images or objects: @@ -190,7 +190,7 @@ if [ "$opt_live" = 1 ]; then # config if [ -e /proc/config.gz ] ; then - dumped_config="$(mktemp /tmp/config-XXX)" + dumped_config="$(mktemp /tmp/config-XXXXXX)" gunzip -c /proc/config.gz > $dumped_config # dumped_config will be deleted at the end of the script opt_config=$dumped_config |