]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
notify: warn if notify msg specified along with --booted 31121/head
authorMike Yuan <me@yhndnzj.com>
Mon, 29 Jan 2024 18:12:15 +0000 (02:12 +0800)
committerMike Yuan <me@yhndnzj.com>
Mon, 29 Jan 2024 19:28:57 +0000 (03:28 +0800)
src/notify/notify.c

index d7421d8cd552074d9f125fc06bcf739b5176293c..32bd6e6a7ae9a044635ccee11a6c49904d4dc90d 100644 (file)
@@ -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)