From: Mike Yuan Date: Mon, 29 Jan 2024 18:12:15 +0000 (+0800) Subject: notify: warn if notify msg specified along with --booted X-Git-Tag: v256-rc1~1016^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F31121%2Fhead;p=thirdparty%2Fsystemd.git notify: warn if notify msg specified along with --booted --- diff --git a/src/notify/notify.c b/src/notify/notify.c index d7421d8cd55..32bd6e6a7ae 100644 --- a/src/notify/notify.c +++ b/src/notify/notify.c @@ -310,6 +310,9 @@ static int parse_argv(int argc, char *argv[]) { return -EINVAL; } + if (have_env && arg_booted) + log_warning("Notify message specified along with --booted, ignoring."); + if (n_arg_env > 0) { arg_env = strv_copy_n(argv + optind, n_arg_env); if (!arg_env)