summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2008-07-22 13:47:08 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2008-07-22 13:47:08 +0200
commit0a3a39559ec427f4d19a27414919d2421c36c9de (patch)
tree021345959f3f5d6f42e363bd3952cdaa50ef9be4
parent5062cb85de35f541c49941a7b19bed797cde7981 (diff)
bin/envstore: Use ~/var/tmp instead of /tmp to prevent possible environment poisoning
-rwxr-xr-xbin/envstore4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/envstore b/bin/envstore
index f36b09b..e3971ba 100755
--- a/bin/envstore
+++ b/bin/envstore
@@ -57,8 +57,8 @@ try:
except IndexError:
usage()
-store_filename = "/tmp/envstore-" + str(os.getuid())
-raw_filename = "/tmp/envstore-raw-" + str(os.getuid())
+store_filename = os.environ["HOME"] + "/var/tmp/envstore-" + str(os.getuid())
+raw_filename = os.environ["HOME"] + "/var/tmp/envstore-raw-" + str(os.getuid())
try:
store_file = open(store_filename)