When the ns hierarchy a//foo and b//foo are compared the are
incorrectly identified as being the same as they have the same depth
and the same basename.
Instead make sure to compare the full hname to distinguish this case.
BugLink: http://bugs.launchpad.net/bugs/1615887
Signed-off-by: John Johansen <john.johansen@canonical.com>
Acked-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
AA_BUG(!a);
AA_BUG(!b);
- AA_BUG(!a->base.name);
- AA_BUG(!b->base.name);
+ AA_BUG(!a->base.hname);
+ AA_BUG(!b->base.hname);
if (a == b)
return 0;
if (res)
return res;
- return strcmp(a->base.name, b->base.name);
+ return strcmp(a->base.hname, b->base.hname);
}
/**