diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2006-08-24 19:53:37 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2006-08-24 19:53:37 +0000 |
commit | a817d93656eb534cdbaaea68e44e5325169ad697 (patch) | |
tree | 46a2f3c55fa6c575471ac1fb530595f19bd3de3c | |
parent | fd44d818219dc62f14d3f22d4d5cff5595a729e9 (diff) | |
download | hqemu-a817d93656eb534cdbaaea68e44e5325169ad697.zip hqemu-a817d93656eb534cdbaaea68e44e5325169ad697.tar.gz |
fixed handling of relative filenames with -snapshot
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2136 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r-- | block.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |