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:
@@ -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");
|
||||
|
Reference in New Issue
Block a user