diff options
author | Max Reitz <mreitz@redhat.com> | 2017-04-13 18:06:24 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2017-04-27 15:39:49 +0200 |
commit | 4a0082401a770261b85625a41eef4a4e89ad7a74 (patch) | |
tree | c738f8dda6e272107fdedd83d23cc1fd8915c4e6 /tests/qemu-iotests/051.pc.out | |
parent | 312758e23724044adb66ad1cd7fcde399817ec5b (diff) |
block: An empty filename counts as no filename
Reproducer:
$ ./qemu-img info ''
qemu-img: ./block.c:1008: bdrv_open_driver: Assertion
`!drv->bdrv_needs_filename || bs->filename[0]' failed.
[1] 26105 abort (core dumped) ./qemu-img info ''
This patch fixes this to be:
$ ./qemu-img info ''
qemu-img: Could not open '': The 'file' block driver requires a file
name
Cc: qemu-stable <qemu-stable@nongnu.org>
Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/051.pc.out')
0 files changed, 0 insertions, 0 deletions