mirror of
https://git.yoctoproject.org/git/poky
synced 2026-01-04 16:10:04 +00:00
bitbake: msg: Avoid issues where paths have relative components
The autobuilder can end up using build/../ syntax which is an issue if the build directory is cleaned. Avoid this by using normpath() on the file path passed in. (Bitbake rev: 41988fec47eb196ab7195a75330a6d98de19101b) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
8ea8f0acb6
commit
e21201ec3b
|
|
@ -280,7 +280,7 @@ def setLoggingConfig(defaultconfig, userconfigfile=None):
|
|||
logconfig = copy.deepcopy(defaultconfig)
|
||||
|
||||
if userconfigfile:
|
||||
with open(userconfigfile, 'r') as f:
|
||||
with open(os.path.normpath(userconfigfile), 'r') as f:
|
||||
if userconfigfile.endswith('.yml') or userconfigfile.endswith('.yaml'):
|
||||
import yaml
|
||||
userconfig = yaml.load(f)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user