mirror of
https://github.com/systemd/systemd.git
synced 2025-02-03 17:47:28 +03:00
pcrlock: use empty_or_dash() more
This commit is contained in:
parent
3c4d0ec940
commit
e80c6ea740
@ -4906,7 +4906,7 @@ static int parse_argv(int argc, char *argv[]) {
|
||||
break;
|
||||
|
||||
case ARG_PCRLOCK:
|
||||
if (isempty(optarg) || streq(optarg, "-"))
|
||||
if (empty_or_dash(optarg))
|
||||
arg_pcrlock_path = mfree(arg_pcrlock_path);
|
||||
else {
|
||||
r = parse_path_argument(optarg, /* suppress_root= */ false, &arg_pcrlock_path);
|
||||
@ -4918,7 +4918,7 @@ static int parse_argv(int argc, char *argv[]) {
|
||||
break;
|
||||
|
||||
case ARG_POLICY:
|
||||
if (isempty(optarg) || streq(optarg, "-"))
|
||||
if (empty_or_dash(optarg))
|
||||
arg_policy_path = mfree(arg_policy_path);
|
||||
else {
|
||||
r = parse_path_argument(optarg, /* suppress_root= */ false, &arg_policy_path);
|
||||
|
Loading…
x
Reference in New Issue
Block a user