copy_file: Add missing O_TRUNC
Without it, when copying a smaller file over a larger file the
resulting file still has the remaining space from the larger file.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent e2b67d6 commit d4f5bb1e011ac653a167031554f0ac9e028e9e36
@Sascha Hauer Sascha Hauer authored on 28 Sep 2013
Showing 1 changed file
View
lib/copy_file.c