mirror of
https://github.com/deajan/obackup.git
synced 2025-05-10 12:13:41 +02:00
Fixed an security issue with LoadConfigFile processing original config file instead of filtered one.
This commit is contained in:
parent
aeb41d2fc3
commit
bce13a8392
@ -165,7 +165,7 @@ function LoadConfigFile
|
|||||||
LogError "Wrong configuration file supplied [$1]. Backup cannot start."
|
LogError "Wrong configuration file supplied [$1]. Backup cannot start."
|
||||||
else
|
else
|
||||||
egrep '^#|^[^ ]*=[^;&]*' "$1" > "/dev/shm/obackup_config_$SCRIPT_PID"
|
egrep '^#|^[^ ]*=[^;&]*' "$1" > "/dev/shm/obackup_config_$SCRIPT_PID"
|
||||||
source $1
|
source "/dev/shm/obackup_config_$SCRIPT_PID"
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user