diff --git a/parser/parser_main.c b/parser/parser_main.c index 563899dae..9e2b3b48d 100644 --- a/parser/parser_main.c +++ b/parser/parser_main.c @@ -931,7 +931,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); skip_cache = write_cache = 0; }