From 23ba5111e909ab6fdd8b79b5874c2d95fbc42a12 Mon Sep 17 00:00:00 2001 From: Technion Date: Thu, 7 Feb 2013 11:49:01 +1100 Subject: [PATCH] Removed insecure temp file --- rpi-update | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpi-update b/rpi-update index 0eddcde..db5f329 100755 --- a/rpi-update +++ b/rpi-update @@ -42,7 +42,7 @@ function update_self() { exit 1 fi - cat > /tmp/updateScript.sh << EOF + cat > /root/.updateScript.sh << EOF #!/bin/bash if mv "${_tempFileName}" "$0"; then rm -- "\$0" @@ -53,7 +53,7 @@ function update_self() { EOF echo " *** Relaunching after update" - exec /bin/bash /tmp/updateScript.sh + exec /bin/bash /root/.updateScript.sh } function update_modules {