mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-09-01 14:55:10 +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 {
|
else {
|
||||||
unlink(cachetemp);
|
unlink(cachetemp);
|
||||||
if (show_cache)
|
PERROR("Warning failed to create cache: %s\n", basename);
|
||||||
PERROR("Removed cache attempt: %s\n", cachetemp);
|
|
||||||
}
|
}
|
||||||
free(cachetemp);
|
free(cachetemp);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user