[CRIU] [PATCH] mount: don't overwrite mount flags by MS_STRICTATIME

Andrei Vagin avagin at openvz.org
Thu Oct 13 19:52:01 PDT 2016


From: Andrei Vagin <avagin at virtuozzo.com>

It's typo fix. MS_STRICTATIME has to be added to other flags there.

Signed-off-by: Andrei Vagin <avagin at virtuozzo.com>
---
 criu/proc_parse.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/criu/proc_parse.c b/criu/proc_parse.c
index 204c31e..84374e9 100644
--- a/criu/proc_parse.c
+++ b/criu/proc_parse.c
@@ -1196,7 +1196,7 @@ static int parse_mnt_flags(char *opt, unsigned *flags)
 
 	/* Otherwise the kernel assumes RELATIME by default */
 	if ((*flags & (MS_RELATIME | MS_NOATIME)) == 0)
-		*flags = MS_STRICTATIME;
+		*flags |= MS_STRICTATIME;
 
 	return 0;
 }
-- 
2.7.4



More information about the CRIU mailing list