diff options
author | Alexey Neyman <stilor@att.net> | 2018-10-27 13:56:22 -0700 |
---|---|---|
committer | Alexey Neyman <stilor@att.net> | 2018-10-27 13:56:22 -0700 |
commit | 21af769802e25d99ef00026372b3e54970643f61 (patch) | |
tree | ca8e82e23adc88e815f3b470350481a0af1ac087 /scripts/build/libc | |
parent | e12e90c798a7c27cb0d7edfba4e7bcd80fc68b65 (diff) | |
download | crosstool-ng-21af769802e25d99ef00026372b3e54970643f61.tar.gz crosstool-ng-21af769802e25d99ef00026372b3e54970643f61.tar.bz2 crosstool-ng-21af769802e25d99ef00026372b3e54970643f61.zip |
Detect errors in CT_SaveLocal
The function is called from a conditional and therefore, the CT_OnError
handler is not invoked on failures. Need to return an error and check
for the error return in the caller.
Also, while here, fix the issue that was causing the failure -
move can fail if it crosses a filesystem, so fall back to 'cp+rm' in
that case.
Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'scripts/build/libc')
0 files changed, 0 insertions, 0 deletions