projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
953134a
)
notify: warn if notify msg specified along with --booted
author
Mike Yuan
<me@yhndnzj.com>
Mon, 29 Jan 2024 18:12:15 +0000
(
02:12
+0800)
committer
Mike Yuan
<me@yhndnzj.com>
Mon, 29 Jan 2024 19:28:57 +0000
(
03:28
+0800)
src/notify/notify.c
patch
|
blob
|
history
diff --git
a/src/notify/notify.c
b/src/notify/notify.c
index d7421d8cd552074d9f125fc06bcf739b5176293c..32bd6e6a7ae9a044635ccee11a6c49904d4dc90d 100644
(file)
--- 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)