mirror of
https://github.com/systemd/systemd
synced 2024-10-15 12:34:37 +00:00
notify: warn if notify msg specified along with --booted
This commit is contained in:
parent
953134a585
commit
ed5f10973b
|
@ -310,6 +310,9 @@ static int parse_argv(int argc, char *argv[]) {
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (have_env && arg_booted)
|
||||||
|
log_warning("Notify message specified along with --booted, ignoring.");
|
||||||
|
|
||||||
if (n_arg_env > 0) {
|
if (n_arg_env > 0) {
|
||||||
arg_env = strv_copy_n(argv + optind, n_arg_env);
|
arg_env = strv_copy_n(argv + optind, n_arg_env);
|
||||||
if (!arg_env)
|
if (!arg_env)
|
||||||
|
|
Loading…
Reference in a new issue