From f4e40ef7e20678a53b139b0367e2f0be2f8f3424 Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Thu, 28 Nov 2013 15:46:00 +0400 Subject: [PATCH] mount: Use is_root_mount helper instead of strcmp It's designed specificly for that. Signed-off-by: Cyrill Gorcunov Signed-off-by: Pavel Emelyanov --- mount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mount.c b/mount.c index d244cd193..71b330ecd 100644 --- a/mount.c +++ b/mount.c @@ -135,7 +135,7 @@ static struct mount_info *mnt_build_ids_tree(struct mount_info *list) p = __lookup_mnt_id(list, m->parent_mnt_id); if (!p) { /* This should be / */ - if (root == NULL && !strcmp(m->mountpoint, "/")) { + if (root == NULL && is_root_mount(m)) { root = m; continue; }