mirror of
https://github.com/speed47/spectre-meltdown-checker.git
synced 2024-12-26 20:10:31 +01:00
Increases tmp directory uniqueness to 6 characters to support Slackware
This commit is contained in:
parent
949f316f89
commit
4454f03136
@ -65,7 +65,7 @@ extract_vmlinux()
|
|||||||
{
|
{
|
||||||
[ -n "$1" ] || return 1
|
[ -n "$1" ] || return 1
|
||||||
# Prepare temp files:
|
# Prepare temp files:
|
||||||
vmlinuxtmp="$(mktemp /tmp/vmlinux-XXX)"
|
vmlinuxtmp="$(mktemp /tmp/vmlinux-XXXXXX)"
|
||||||
trap "rm -f $vmlinuxtmp" EXIT
|
trap "rm -f $vmlinuxtmp" EXIT
|
||||||
|
|
||||||
# Initial attempt for uncompressed images or objects:
|
# Initial attempt for uncompressed images or objects:
|
||||||
@ -190,7 +190,7 @@ if [ "$opt_live" = 1 ]; then
|
|||||||
|
|
||||||
# config
|
# config
|
||||||
if [ -e /proc/config.gz ] ; then
|
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
|
gunzip -c /proc/config.gz > $dumped_config
|
||||||
# dumped_config will be deleted at the end of the script
|
# dumped_config will be deleted at the end of the script
|
||||||
opt_config=$dumped_config
|
opt_config=$dumped_config
|
||||||
|
Loading…
Reference in New Issue
Block a user