mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-02-14 22:40:34 +01:00
test: Avoid arbitrary Python injection if compiled in a path with quotes
Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
parent
22b12cdb3f
commit
60afeaa5d6
1 changed files with 3 additions and 1 deletions
|
|
@ -76,7 +76,9 @@ test_env.set('DBUS_TEST_UNINSTALLED', '1')
|
|||
|
||||
xdgdir = custom_target('gen-xdgdir',
|
||||
command: [
|
||||
python, '-c', 'import os; os.makedirs("@0@", exist_ok=True)'.format(meson.current_build_dir() / 'XDG_RUNTIME_DIR')
|
||||
python, '-c',
|
||||
'import os, sys; os.makedirs(sys.argv[1], exist_ok=True)',
|
||||
meson.current_build_dir() / 'XDG_RUNTIME_DIR',
|
||||
],
|
||||
output: 'XDG_RUNTIME_DIR'
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue