[CRIU] [PATCH 01/10] Fix for open_pages_image_at to read if opened with O_RDWR
Tikhomirov Pavel
snorcht at gmail.com
Tue Nov 19 02:28:20 PST 2013
Signed-off-by: Tikhomirov Pavel <snorcht at gmail.com>
---
image.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/image.c b/image.c
index 3a26600..702a471 100644
--- a/image.c
+++ b/image.c
@@ -301,7 +301,7 @@ int open_pages_image_at(int dfd, unsigned long flags, int pm_fd)
{
unsigned id;
- if (flags == O_RDONLY) {
+ if (flags == O_RDONLY || flags == O_RDWR) {
PagemapHead *h;
if (pb_read_one(pm_fd, &h, PB_PAGEMAP_HEAD) < 0)
return -1;
--
1.7.9.5
More information about the CRIU
mailing list