Hi Ben, > Date: 2026-10-04 16:49:17+0800 > From: Ben Kuo via B4 Relay > > From: Ben Kuo > > The example call omits the 'filesystemtype' argument, so it passes > four arguments to mount(2), which takes five. As written, it fails > to compile: > > error: too few arguments to function 'mount' > > Tested by compiling the corrected call with gcc 14.2.0 and running > it after unshare(CLONE_NEWNS) on Linux 6.12 (Debian 13, arm64); > findmnt(8) shows '/' with slave propagation. > > Fixes: a2fc45a9f (2019-10-07; "mount_namespaces.7: It may be desirable to disable propagation after creating a namespace") > Signed-off-by: Ben Kuo > --- Thanks! I've applied the patch. Have a lovely day! Alex > man/man7/mount_namespaces.7 | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/man/man7/mount_namespaces.7 b/man/man7/mount_namespaces.7 > index 8ed43a34623310f5c0b6b2071815340b287415aa..8f9c8e6e147a42b85d9d2cc2c691037ef82395f5 100644 > --- a/man/man7/mount_namespaces.7 > +++ b/man/man7/mount_namespaces.7 > @@ -1051,7 +1051,7 @@ using a call such as the following: > .P > .in +4n > .EX > -mount(NULL, "/", MS_SLAVE | MS_REC, NULL); > +mount(NULL, "/", NULL, MS_SLAVE | MS_REC, NULL); > .EE > .in > .P > > --- > base-commit: 31d36870d5f239d485772f1dbf17948bc35bee80 > change-id: 20261004-mount-ns-mount-args-98990fdab699 > > Best regards, > -- > Ben Kuo > > > --