mirror of
https://github.com/xemu-project/xemu.git
synced 2025-02-09 05:38:34 +00:00
fixed handling of relative filenames with -snapshot
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2136 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
fd44d81821
commit
a817d93656
3
block.c
3
block.c
@ -335,8 +335,9 @@ int bdrv_open2(BlockDriverState *bs, const char *filename, int flags,
|
||||
bdrv_delete(bs1);
|
||||
|
||||
get_tmp_filename(tmp_filename, sizeof(tmp_filename));
|
||||
realpath(filename, backing_filename);
|
||||
if (bdrv_create(&bdrv_qcow2, tmp_filename,
|
||||
total_size, filename, 0) < 0) {
|
||||
total_size, backing_filename, 0) < 0) {
|
||||
return -1;
|
||||
}
|
||||
filename = tmp_filename;
|
||||
|
Loading…
x
Reference in New Issue
Block a user