2
0
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:
Tyler Hicks
2015-03-25 17:09:26 -05:00
parent 5b85282e9f
commit d93d00cca9
2 changed files with 5 additions and 3 deletions

View File

@@ -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)