projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ec65a0
)
Add O_BINARY to open call in net_dump_init.
author
Filip Navara
<filip.navara@gmail.com>
Wed, 17 Jun 2009 17:48:08 +0000
(19:48 +0200)
committer
Anthony Liguori
<aliguori@us.ibm.com>
Mon, 22 Jun 2009 15:10:50 +0000
(10:10 -0500)
Fix the pcap dumps on Win32 and other systems where O_BINARY is required.
Signed-off-by: Filip Navara <filip.navara@gmail.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
net.c
patch
|
blob
|
history
diff --git
a/net.c
b/net.c
index c83999b03a9427e063bd06759294a4bbedf80cb8..9f9e3632ac07d618681d944f2ef92a3c39055e17 100644
(file)
--- a/
net.c
+++ b/
net.c
@@
-1990,7
+1990,7
@@
static int net_dump_init(Monitor *mon, VLANState *vlan, const char *device,
s = qemu_malloc(sizeof(DumpState));
- s->fd = open(filename, O_CREAT | O_WRONLY, 0644);
+ s->fd = open(filename, O_CREAT | O_WRONLY
| O_BINARY
, 0644);
if (s->fd < 0) {
config_error(mon, "-net dump: can't open %s\n", filename);
return -1;