From: Karel Zak Date: Fri, 11 Oct 2013 08:51:59 +0000 (+0200) Subject: libmount: fix mnt_context_is_child() comment X-Git-Tag: v2.24-rc2~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4f0f1ccadb9db42fd421ebed53a578c542236a0;p=thirdparty%2Futil-linux.git libmount: fix mnt_context_is_child() comment Signed-off-by: Karel Zak --- diff --git a/libmount/src/context.c b/libmount/src/context.c index 04eb2861c5..5a88bcdccd 100644 --- a/libmount/src/context.c +++ b/libmount/src/context.c @@ -383,10 +383,13 @@ int mnt_context_is_parent(struct libmnt_context *cxt) * mnt_context_is_child: * @cxt: mount context * - * Return: 1 if mount -F enabled and the current context is child, or 0 + * Return: 1 f the current context is child, or 0 */ int mnt_context_is_child(struct libmnt_context *cxt) { + /* See mnt_fork_context(), the for fork flag is always disabled + * for children to avoid recursive forking. + */ return !mnt_context_is_fork(cxt) && cxt->pid; }