From bce13a83929ae5ba9f136586a8d334e37a36e5a5 Mon Sep 17 00:00:00 2001 From: deajan Date: Sat, 15 Jun 2013 13:22:51 +0200 Subject: [PATCH] Fixed an security issue with LoadConfigFile processing original config file instead of filtered one. --- obackup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/obackup.sh b/obackup.sh index b9b256a..5c32a10 100755 --- a/obackup.sh +++ b/obackup.sh @@ -165,7 +165,7 @@ function LoadConfigFile LogError "Wrong configuration file supplied [$1]. Backup cannot start." else egrep '^#|^[^ ]*=[^;&]*' "$1" > "/dev/shm/obackup_config_$SCRIPT_PID" - source $1 + source "/dev/shm/obackup_config_$SCRIPT_PID" fi }