Skip to content
Browse files

Merge pull request #67 from technion/master

Insecure tmp file handling
  • Loading branch information...
2 parents 08fc0b1 + 23ba511 commit 85b714f4fc3d7b5304970f901da6b2cb8b412552 @popcornmix popcornmix committed Mar 6, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 rpi-update
View
4 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 {

0 comments on commit 85b714f

Please sign in to comment.
Something went wrong with that request. Please try again.