aboutsummaryrefslogtreecommitdiffstats
path: root/backuper.sh
diff options
context:
space:
mode:
authorGravatar Robin Obůrka <r.oburka@gmail.com> 2016-07-25 00:05:10 +0200
committerGravatar Robin Obůrka <r.oburka@gmail.com> 2016-07-25 00:05:10 +0200
commit0f536b179f68cf15a595a3f76728bad7a510e680 (patch)
tree1f102808b01b789b4b8b334d322bb262924b1580 /backuper.sh
parentFix path resolving (diff)
downloadbackuper-0f536b179f68cf15a595a3f76728bad7a510e680.tar.xz
Secure RUNDIR
Diffstat (limited to 'backuper.sh')
-rw-r--r--backuper.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/backuper.sh b/backuper.sh
index 004d970..67eb92b 100644
--- a/backuper.sh
+++ b/backuper.sh
@@ -184,6 +184,7 @@ prepare() {
TS="$(date +"%Y-%m-%d_%H-%M-%S")"
RUNDIR="/tmp/backuper_run_dir_$$_$UTS"
mkdir -p "$RUNDIR"
+ chmod 700 "$RUNDIR"
}
error_handler() {