From 652dac0cec060f4ad7ddbdee0adb900615351c47 Mon Sep 17 00:00:00 2001 From: Tyler Hicks Date: Thu, 31 May 2018 17:27:00 +0000 Subject: [PATCH] aa-exec: Remove extra newline when profile changes fail An extra newline was being printed when aa_change_profile() failed and errno was ENOENT or EACCES. Signed-off-by: Tyler Hicks --- binutils/aa_exec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/binutils/aa_exec.c b/binutils/aa_exec.c index 7e73f45f3..85424c010 100644 --- a/binutils/aa_exec.c +++ b/binutils/aa_exec.c @@ -202,7 +202,7 @@ int main(int argc, char **argv) if (rc) { if (errno == ENOENT || errno == EACCES) { - error("%s '%s' does not exist\n", + error("%s '%s' does not exist", opt_profile ? "profile" : "namespace", name); } else if (errno == EINVAL) { error("AppArmor interface not available");