projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd44d81
)
fixed handling of relative filenames with -snapshot
author
bellard
<bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 24 Aug 2006 19:53:37 +0000
(19:53 +0000)
committer
bellard
<bellard@c046a42c-6fe2-441c-8c8c-71466251a162>
Thu, 24 Aug 2006 19:53:37 +0000
(19:53 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2136
c046a42c
-6fe2-441c-8c8c-
71466251a162
block.c
patch
|
blob
|
history
diff --git
a/block.c
b/block.c
index 12fc2ef456f9a24ce78b0aa480a4c12376f1d76a..fdaba4bcafee4a0ee8a959d8607e9e9d53c60749 100644
(file)
--- a/
block.c
+++ b/
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;