libmount: fix mnt_context_is_child() comment

Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2013-10-11 10:51:59 +02:00
parent 94c7fa6ee7
commit d4f0f1ccad
1 changed files with 4 additions and 1 deletions

View File

@ -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;
}