diff options
author | Teresa Remmet <t.remmet@phytec.de> | 2017-01-16 10:07:39 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2017-01-17 07:57:16 +0100 |
commit | d7253200f53a2a3ca3739f2b2bf106ee6ba09496 (patch) | |
tree | 3ff3c447817deac4c69cbca281b50ef3160db879 /common/Kconfig | |
parent | e1e8656a7d24133758dc65512a5714c9d0bf1abd (diff) | |
download | barebox-d7253200f53a2a3ca3739f2b2bf106ee6ba09496.tar.gz barebox-d7253200f53a2a3ca3739f2b2bf106ee6ba09496.tar.xz |
lib: libfile: Fix copying files to a non existing destination
If the destination file does not exist the stat call to check the file
type fails. Extend the check of the stat return value.
To allow to copy files to a new destination.
Fixes commit 0ec6bd3e1be8 ("libfile: copy_file: Only open
regular files with O_TRUNC")
Signed-off-by: Teresa Remmet <t.remmet@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/Kconfig')
0 files changed, 0 insertions, 0 deletions