aboutsummaryrefslogtreecommitdiff
path: root/handlers/dup.in
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2008-06-25 09:54:45 +0000
committerintrigeri <intrigeri@boum.org>2008-06-25 09:54:45 +0000
commit788e82b56a4bdd1758e9887788b8fb818c9850a3 (patch)
treea11281561600c8064f52756eeba186ae1a229840 /handlers/dup.in
parentbc8d8172189797e429549cac994b9cbfd2f6a52f (diff)
downloadbackupninja-788e82b56a4bdd1758e9887788b8fb818c9850a3.tar.gz
backupninja-788e82b56a4bdd1758e9887788b8fb818c9850a3.tar.bz2
dup: set secure permissions on tmpdir when creating it
Diffstat (limited to 'handlers/dup.in')
-rw-r--r--handlers/dup.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/handlers/dup.in b/handlers/dup.in
index 2854974..89db671 100644
--- a/handlers/dup.in
+++ b/handlers/dup.in
@@ -166,6 +166,7 @@ if [ -n "$tmpdir" ]; then
info "Temporary directory ($tmpdir) does not exist, creating it."
mkdir -p "$tmpdir"
[ $? -eq 0 ] || fatal "Could not create temporary directory ($tmpdir)."
+ chmod 0700 "$tmpdir"
fi
info "Using $tmpdir as TMPDIR"
precmd="${precmd}TMPDIR=$tmpdir "