From a8630727061625e4e5013f7037e732dfb6e41f40 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Tue, 16 Jun 2015 10:53:25 +0000 Subject: [PATCH] mount: update parser to match kernel behaviour * mount.c (sys_mount): Do not decode type and data strings for MS_SHARED, MS_PRIVATE, MS_SLAVE, and MS_UNBINDABLE mount flags that do not imply valid strings. --- mount.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mount.c b/mount.c index 2f7f0cae..d980d75c 100644 --- a/mount.c +++ b/mount.c @@ -48,7 +48,8 @@ SYS_FUNC(mount) if (flags & MS_REMOUNT) ignore_type = true; - else if (flags & (MS_BIND | MS_MOVE)) + else if (flags & (MS_BIND | MS_MOVE | MS_SHARED + | MS_PRIVATE | MS_SLAVE | MS_UNBINDABLE)) ignore_type = ignore_data = true; printpath(tcp, tcp->u_arg[0]); -- 2.40.0