2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-31 06:16:03 +00:00

fix bug where parser wasn't properly merging link rules, when a link pair was specified

This commit is contained in:
John Johansen
2007-12-20 12:58:59 +00:00
parent edda8c2604
commit 5b758f9dad

View File

@@ -48,6 +48,17 @@ static int file_comp(const void *c1, const void *c2)
if (res)
return res;
if ((*e1)->link_name) {
if ((*e2)->link_name)
res = strcmp((*e1)->link_name, (*e2)->link_name);
else
return 1;
} else if ((*e2)->link_name) {
return -1;
}
if (res)
return res;
return strcmp((*e1)->name, (*e2)->name);
}