[PATCH 04/16] tools: Avoid leaving extra data at the end of copied files
    Simon Glass 
    sjg at chromium.org
       
    Thu Jan 27 00:57:14 CET 2022
    
    
  
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 <sjg at 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!
    
    
More information about the U-Boot
mailing list