Skip to content
This repository
Browse code

Merge pull request #67 from technion/master

Insecure tmp file handling
  • Loading branch information...
commit 85b714f4fc3d7b5304970f901da6b2cb8b412552 2 parents 08fc0b1 + 23ba511
popcornmix popcornmix authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 rpi-update
4 rpi-update
@@ -42,7 +42,7 @@ function update_self() {
42 42 exit 1
43 43 fi
44 44
45   - cat > /tmp/updateScript.sh << EOF
  45 + cat > /root/.updateScript.sh << EOF
46 46 #!/bin/bash
47 47 if mv "${_tempFileName}" "$0"; then
48 48 rm -- "\$0"
@@ -53,7 +53,7 @@ function update_self() {
53 53 EOF
54 54
55 55 echo " *** Relaunching after update"
56   - exec /bin/bash /tmp/updateScript.sh
  56 + exec /bin/bash /root/.updateScript.sh
57 57 }
58 58
59 59 function update_modules {

0 comments on commit 85b714f

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