mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-31 14:25:52 +00:00
parser: Deprecate the --create-cache-dir option
This option adds unneeded complexity to the parser CLI and the upcoming aa_policy_cache API. Get rid of it and simply create the cache dir if --write-cache is specified. Signed-off-by: Tyler Hicks <tyhicks@canonical.com> Acked-by: John Johansen <john.johansen@canonical.com>
This commit is contained in:
@@ -123,7 +123,7 @@ create_file:
|
||||
|
||||
error:
|
||||
/* does the dir exist? */
|
||||
if (stat(cachedir, &stat_file) == -1 && create_cache_dir) {
|
||||
if (stat(cachedir, &stat_file) == -1) {
|
||||
if (mkdir(cachedir, 0700) == 0)
|
||||
goto create_file;
|
||||
if (show_cache)
|
||||
|
Reference in New Issue
Block a user