diff --git a/parser/parser_main.c b/parser/parser_main.c index b8ff3c61e..5c6e5c980 100644 --- a/parser/parser_main.c +++ b/parser/parser_main.c @@ -691,7 +691,8 @@ int process_profile(int option, aa_kernel_interface *kernel_interface, return errno; } } else { - pwarn("%s: cannot use or update cache, disable, or force-complain via stdin\n", progname); + if (write_cache) + pwarn("%s: cannot use or update cache, disable, or force-complain via stdin\n", progname); } reset_parser(profilename);