mirror of
https://github.com/systemd/systemd.git
synced 2026-06-24 08:47:49 +00:00
meson: use printf instead of echo
The echo builtin provided by some shells (mksh) will interpret \x2d as an escape sequence. This causes meson to fail: ``` test/fuzz/meson.build:93:52: ERROR: File fuzz-unit-file/dm-back-slash.swap does not exist. ``` Bug: https://bugs.gentoo.org/969789
This commit is contained in:
committed by
Daan De Meyer
parent
7e8c35ce80
commit
a304f6c9db
@@ -42,7 +42,7 @@ if git.found() and fs.is_dir(meson.project_source_root() / '.git')
|
||||
'ls-files', ':/@0@/*/*'.format(fuzz_testsdir),
|
||||
check: true)
|
||||
else
|
||||
out = run_command(sh, '-c', 'cd "@0@"; echo @1@/*/*'.format(meson.project_source_root(), fuzz_testsdir), check: true)
|
||||
out = run_command(sh, '-c', 'cd "@0@"; printf "%s " @1@/*/*'.format(meson.project_source_root(), fuzz_testsdir), check: true)
|
||||
endif
|
||||
|
||||
# Add crafted fuzz inputs we have in the repo
|
||||
|
||||
Reference in New Issue
Block a user