Merge [3.0, 3.1] Fix invalid aa-status --json

The previous patch changed the final  }}  to  }  - which is correct in
master, but breaks the code in the 3.x branches.

I propose this patch for 3.0 and 3.1.

MR: https://gitlab.com/apparmor/apparmor/-/merge_requests/1046
Approved-by: John Johansen <john@jjmx.net>
Merged-by: John Johansen <john@jjmx.net>
This commit is contained in:
John Johansen 2023-06-06 21:42:28 +00:00
commit f34d60b1e8

View file

@ -548,7 +548,7 @@ static int detailed_output(FILE *json) {
if (need_finish > 0) {
fprintf(json, "]");
}
fprintf(json, "}\n");
fprintf(json, "}}\n");
}
exit: