From 0f536b179f68cf15a595a3f76728bad7a510e680 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin=20Ob=C5=AFrka?= Date: Mon, 25 Jul 2016 00:05:10 +0200 Subject: Secure RUNDIR --- backuper.sh | 1 + 1 file changed, 1 insertion(+) 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() { -- cgit v1.2.3