mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 22:35:35 +00: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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user