summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorTeresa Remmet <t.remmet@phytec.de>2016-11-25 09:06:02 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2017-01-11 08:06:48 +0100
commit0ec6bd3e1be84da991091fab5bbe20f168471a39 (patch)
treecadd61f5ba58b53e472b8ab9a11c11a7b799bc5f /fs
parentc580e8422c0cb6dfe963c826a9d83214e6f0aa8a (diff)
downloadbarebox-0ec6bd3e1be84da991091fab5bbe20f168471a39.tar.gz
barebox-0ec6bd3e1be84da991091fab5bbe20f168471a39.tar.xz
libfile: copy_file: Only open regular files with O_TRUNC
Device files can not truncate in the most cases. Check if the destination is a regular file and open only those with O_TRUNC. Signed-off-by: Teresa Remmet <t.remmet@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'fs')
0 files changed, 0 insertions, 0 deletions