Browse Source

Open backing device as readonly in patch manager

master
Vitaliy Filippov 9 years ago
parent
commit
24883d4949
  1. 2
      patch_io.c

2
patch_io.c

@ -129,7 +129,7 @@ static errcode_t patch_open(const char *name, int flags, io_channel *channel)
if (patch_io_backing_manager)
{
retval = patch_io_backing_manager->open(name, flags, &data->real);
retval = patch_io_backing_manager->open(name, flags & ~IO_FLAG_RW, &data->real);
if (retval)
goto cleanup;
}

Loading…
Cancel
Save