Commit e7d6bbd6 authored by Manuel Rüger's avatar Manuel Rüger Committed by Richard Hughes
Browse files

trivial: Use absolute-names in tar command for creating test data file

[1/182] /bin/tar --xform 's,.*/,,' --create --file data/tests/builder/firmware.tar ../fwupd-1.0.0/data/tests/builder/source.bin ../fwupd-1.0.0/data/tests/builder/
FAILED: data/tests/builder/firmware.tar
/bin/tar --xform 's,.*/,,' --create --file data/tests/builder/firmware.tar ../fwupd-1.0.0/data/tests/builder/source.bin ../fwupd-1.0.0/data/tests/builder/
/bin/tar: ../fwupd-1.0.0/data/tests/builder/source.bin: Member name contains '..'
/bin/tar: ../fwupd-1.0.0/data/tests/builder/ Member name contains '..'
/bin/tar: Exiting with failure status due to previous errors
parent f1e01151
......@@ -8,7 +8,7 @@ if get_option('enable-tests')
output : 'firmware.tar',
command : [
tar, '--xform', 's,.*/,,',
'--create', '--file', '@OUTPUT@', '@INPUT@',
'--absolute-names', '--create', '--file', '@OUTPUT@', '@INPUT@',
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment