Fixed an security issue with LoadConfigFile processing original config file instead of filtered one.

This commit is contained in:
deajan 2013-06-15 13:22:51 +02:00
parent aeb41d2fc3
commit bce13a8392
1 changed files with 1 additions and 1 deletions

View File

@ -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
}