diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2018-05-31 16:37:31 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2018-05-31 16:37:31 +0200 |
commit | c0a862930c1bd033be30f2c48e91a6f7e76a5a58 (patch) | |
tree | 86c2e3d14634575ef5c4a6f6a73ae668103c1139 /buildlab.in | |
parent | 75b8cacaf0468470c502314560a436b80b7fe9af (diff) | |
download | abuild-c0a862930c1bd033be30f2c48e91a6f7e76a5a58.tar.gz abuild-c0a862930c1bd033be30f2c48e91a6f7e76a5a58.tar.bz2 abuild-c0a862930c1bd033be30f2c48e91a6f7e76a5a58.tar.xz abuild-c0a862930c1bd033be30f2c48e91a6f7e76a5a58.zip |
abuild: fix race when stripping
scanelf may pick up tempfiles created by strip or setfattr since it runs
in spearate process and pipes the out to a subshell. This causes a race
and may lead to the while loop attempt to strip seomthing that no longer
exists.
We fix that by test if file exists before try manipulate it. We could
have written he file list to a temp file first, but this way we benefit
from multiple cores working in parallel.
Diffstat (limited to 'buildlab.in')
0 files changed, 0 insertions, 0 deletions