Accepting request 239930 from Virtualization

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/239930
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/hyper-v?expand=0&rev=23
This commit is contained in:
Stephan Kulow 2014-07-13 12:05:45 +00:00 committed by Git OBS Bridge
commit 46805bf3b0
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Jul 1 17:32:30 CEST 2014 - ohering@suse.de
- fix file overwriting of hv_fcopy_daemon
------------------------------------------------------------------- -------------------------------------------------------------------
Mon May 26 15:50:21 CEST 2014 - ohering@suse.de Mon May 26 15:50:21 CEST 2014 - ohering@suse.de

View File

@ -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) { if (target_fd == -1) {
syslog(LOG_INFO, "Open Failed: %s", strerror(errno)); syslog(LOG_INFO, "Open Failed: %s", strerror(errno));
goto done; goto done;