diff options
| author | Peter Maydell | 2012-05-25 14:07:01 +0200 |
|---|---|---|
| committer | Anthony Liguori | 2012-07-11 15:51:50 +0200 |
| commit | 31783203c3b74c11015b20194d57dada559940cf (patch) | |
| tree | 3ca6b3244b3cd62a6172d28e9bb79d897b57ff52 /qapi/qapi-visit-core.c | |
| parent | megasas: disable due to build breakage (diff) | |
| download | qemu-31783203c3b74c11015b20194d57dada559940cf.tar.gz qemu-31783203c3b74c11015b20194d57dada559940cf.tar.xz qemu-31783203c3b74c11015b20194d57dada559940cf.zip | |
qemu_find_file: check name as a straight path even if it has no '/'
Make qemu_find_file() check for the passed in name as a straight
pathname even if it doesn't have any path separator character in it.
This means that "-bios foo", "-dtb foo" etc will find a file 'foo'
in the current directory.
This removes an inconsistency with -kernel and -initrd, which both
accept plain filenames as meaning files in the current directory.
It's also less confusing for the user than an undocumented restriction
that "this option accepts a filename, except for the special case
where the filename you pass happens not to have a '/' in it, in
which case we'll ignore it."
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'qapi/qapi-visit-core.c')
0 files changed, 0 insertions, 0 deletions
