[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-commits] [COMMIT 024431b] Add O_BINARY to open call in net_dump_in
From: |
Anthony Liguori |
Subject: |
[Qemu-commits] [COMMIT 024431b] Add O_BINARY to open call in net_dump_init. |
Date: |
Mon, 22 Jun 2009 15:51:03 -0000 |
From: Filip Navara <address@hidden>
Fix the pcap dumps on Win32 and other systems where O_BINARY is required.
Signed-off-by: Filip Navara <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>
diff --git a/net.c b/net.c
index c83999b..9f9e363 100644
--- 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;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-commits] [COMMIT 024431b] Add O_BINARY to open call in net_dump_init.,
Anthony Liguori <=