diff options
Diffstat (limited to 'emulators/qemu/files/patch-block.c')
-rw-r--r-- | emulators/qemu/files/patch-block.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/emulators/qemu/files/patch-block.c b/emulators/qemu/files/patch-block.c deleted file mode 100644 index f607e8fe29c3..000000000000 --- a/emulators/qemu/files/patch-block.c +++ /dev/null @@ -1,10 +0,0 @@ -Index: qemu/block.c -@@ -381,7 +381,7 @@ - else - open_flags = flags & ~(BDRV_O_FILE | BDRV_O_SNAPSHOT); - ret = drv->bdrv_open(bs, filename, open_flags); -- if (ret == -EACCES && !(flags & BDRV_O_FILE)) { -+ if ((ret == -EACCES || ret == -EPERM) && !(flags & BDRV_O_FILE)) { - ret = drv->bdrv_open(bs, filename, BDRV_O_RDONLY); - bs->read_only = 1; - } |