The copyfile() implementation has strange behaviour if the destination
file already exists. Update it to ensure that any existing data in the
destination file is dropped.

Signed-off-by: Simon Glass <s...@chromium.org>
---

 tools/fit_common.c | 2 +-
 tools/fit_common.h | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

Applied to u-boot-dm, thanks!

Reply via email to