]> git.proxmox.com Git - mirror_qemu.git/blobdiff - qemu-nbd.c
read-only: minor cleanup
[mirror_qemu.git] / qemu-nbd.c
index eac0c21f1c9278cddf2045930e6b36335c1d85b4..a393583040a04ea9d03f18e3c84292157e47d8fc 100644 (file)
@@ -258,6 +258,7 @@ int main(int argc, char **argv)
             break;
         case 'r':
             readonly = true;
+            flags &= ~BDRV_O_RDWR;
             break;
         case 'P':
             partition = strtol(optarg, &end, 0);