2
0
mirror of https://gitlab.com/apparmor/apparmor synced 2025-08-30 22:05:27 +00:00

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 <tyhicks@canonical.com>
This commit is contained in:
Tyler Hicks
2018-05-31 17:27:00 +00:00
parent c9d341782e
commit 652dac0cec

View File

@@ -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");