projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf5a65a
)
QemuOpts: Fix qemu_config_parse() to catch file read errors
author
Markus Armbruster
<armbru@redhat.com>
Thu, 18 Feb 2010 18:56:01 +0000
(19:56 +0100)
committer
Markus Armbruster
<armbru@redhat.com>
Tue, 16 Mar 2010 15:58:32 +0000
(16:58 +0100)
qemu-config.c
patch
|
blob
|
history
diff --git
a/qemu-config.c
b/qemu-config.c
index 2de97cde290ddb871f60dd15ec128ec8da389287..ad130fbebe3efd01cb9b3e7963524ffcdc0ba856 100644
(file)
--- a/
qemu-config.c
+++ b/
qemu-config.c
@@
-475,6
+475,10
@@
int qemu_config_parse(FILE *fp, const char *fname)
error_report("parse error");
goto out;
}
+ if (ferror(fp)) {
+ error_report("error reading file");
+ goto out;
+ }
res = 0;
out:
loc_pop(&loc);