libfile: copy_file: explicitly truncate to final size
When possible truncate the destination file to the final size
explicitly. This allows for example ramfs to put the resulting
file contiguously into memory.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent e9fb407 commit a5f73a6dcd5296abb76c50615cb7c1ddfb227708
@Sascha Hauer Sascha Hauer authored on 11 Jun 2020
Showing 1 changed file
View
lib/libfile.c