diff options
author | Mike Yuan <me@yhndnzj.com> | 2024-01-29 19:12:15 +0100 |
---|---|---|
committer | Mike Yuan <me@yhndnzj.com> | 2024-01-29 20:28:57 +0100 |
commit | ed5f10973b6b7406a9ad339540d98f9bfdbe4c50 (patch) | |
tree | c0bd4b0811d9f7a48a49b2040a38c5ad12aeeef3 /src/notify/notify.c | |
parent | notify: don't exit silently when --exec but no msg (diff) | |
download | systemd-ed5f10973b6b7406a9ad339540d98f9bfdbe4c50.tar.xz systemd-ed5f10973b6b7406a9ad339540d98f9bfdbe4c50.zip |
notify: warn if notify msg specified along with --booted
Diffstat (limited to 'src/notify/notify.c')
-rw-r--r-- | src/notify/notify.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/notify/notify.c b/src/notify/notify.c index d7421d8cd5..32bd6e6a7a 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) |