From 9fdb2b55d5288df09539b7617ad3a7f58e1333a7 Mon Sep 17 00:00:00 2001 From: Martin Kletzander Date: Wed, 12 Nov 2014 17:41:38 +0100 Subject: [PATCH] virt-aa-helper: Trick invalid syntax-check Rule sc_prohibit_newline_at_end_of_diagnostic for syntax-check does check for passing strings ending with '\n' two lines after known functions. This is, of course subject to false positives, so for the sake of future changes, trick that syntax-check by adding one more line with a comment. Signed-off-by: Martin Kletzander --- src/security/virt-aa-helper.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/security/virt-aa-helper.c b/src/security/virt-aa-helper.c index 1f299a056d..8c2434cd09 100644 --- a/src/security/virt-aa-helper.c +++ b/src/security/virt-aa-helper.c @@ -1257,6 +1257,7 @@ main(int argc, char **argv) vah_error(ctl, 1, _("could not set PATH")); } + /* ensure the traditional IFS setting */ if (setenv("IFS", " \t\n", 1) != 0) { vah_error(ctl, 1, _("could not set IFS")); } -- GitLab