Commit 05551756 authored by Daniel Reichelt's avatar Daniel Reichelt Committed by Daniel Baumann
Browse files

Don't truncate files outside the build chroot.

The list of files passed to Truncate() might contain absolute symlinks
pointing to files outside the chroot, which previously destroyed files on
the build host.
parent 1af19fd6
......@@ -36,6 +36,9 @@ Truncate ()
for FILE in ${@}
: > ${FILE}
if [ ! -L ${FILE} ]
: > ${FILE}
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