mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 08:24:42 +01:00
Provide a more user friendly error message when cache is
requested and fails to be created. Also don't make the warning output conditional on the showcache flag as we should be showing warning/errors by default. Signed-off-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
parent
a30dfb6b19
commit
12a98135bf
1 changed files with 1 additions and 2 deletions
|
@ -1007,8 +1007,7 @@ out:
|
|||
}
|
||||
else {
|
||||
unlink(cachetemp);
|
||||
if (show_cache)
|
||||
PERROR("Removed cache attempt: %s\n", cachetemp);
|
||||
PERROR("Warning failed to create cache: %s\n", basename);
|
||||
}
|
||||
free(cachetemp);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue