projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'xtensa-for-next-20140815' into for_next
[cascardo/linux.git]
/
tools
/
hv
/
hv_fcopy_daemon.c
diff --git
a/tools/hv/hv_fcopy_daemon.c
b/tools/hv/hv_fcopy_daemon.c
index
fba1c75
..
8f96b3e
100644
(file)
--- a/
tools/hv/hv_fcopy_daemon.c
+++ b/
tools/hv/hv_fcopy_daemon.c
@@
-88,7
+88,8
@@
static int hv_start_fcopy(struct hv_start_fcopy *smsg)
}
}
- target_fd = open(target_fname, O_RDWR | O_CREAT | O_CLOEXEC, 0744);
+ target_fd = open(target_fname,
+ O_RDWR | O_CREAT | O_TRUNC | O_CLOEXEC, 0744);
if (target_fd == -1) {
syslog(LOG_INFO, "Open Failed: %s", strerror(errno));
goto done;