mirror of
https://github.com/morgan9e/systemd
synced 2026-04-15 08:56:15 +09:00
pcrlock: use empty_or_dash() more
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user