mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-09-02 07:15:18 +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 (rc) {
|
||||||
if (errno == ENOENT || errno == EACCES) {
|
if (errno == ENOENT || errno == EACCES) {
|
||||||
error("%s '%s' does not exist\n",
|
error("%s '%s' does not exist",
|
||||||
opt_profile ? "profile" : "namespace", name);
|
opt_profile ? "profile" : "namespace", name);
|
||||||
} else if (errno == EINVAL) {
|
} else if (errno == EINVAL) {
|
||||||
error("AppArmor interface not available");
|
error("AppArmor interface not available");
|
||||||
|
Reference in New Issue
Block a user