| Submitter | Stefan Hajnoczi |
|---|---|
| Date | Jan. 30, 2013, 10:24 a.m. |
| Message ID | <1359541470-30775-4-git-send-email-stefanha@redhat.com> |
| Download | mbox | patch |
| Permalink | /patch/216829/ |
| State | New |
| Headers | show |
Comments
Patch
diff --git a/hw/acpi.c b/hw/acpi.c index 97617c4..8c9dcc5 100644 --- a/hw/acpi.c +++ b/hw/acpi.c @@ -104,7 +104,7 @@ int acpi_table_add(const char *t) /* now read in the data files, reallocating buffer as needed */ for (f = strtok(buf, ":"); f; f = strtok(NULL, ":")) { - int fd = open(f, O_RDONLY); + int fd = open(f, O_RDONLY | O_BINARY); if (fd < 0) { fprintf(stderr, "can't open file %s: %s\n", f, strerror(errno));