]> git.ipfire.org Git - thirdparty/systemd.git/commit
cryptenroll: validate positional arguments before looking at detail parameters 29695/head
authorLennart Poettering <lennart@poettering.net>
Tue, 24 Oct 2023 20:54:39 +0000 (22:54 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 25 Oct 2023 07:29:34 +0000 (09:29 +0200)
commit51abb74eabb8351e319fd12865c2e11abd8c8966
tree16cd90bfe6997415f141b04dc24d616a43f7d259
parent996d22e50a3b35657bc3bc1c6f419c2c27d84344
cryptenroll: validate positional arguments before looking at detail parameters

Let's switch the order in which we process positional arguments and
analyze/tweak detail parameters. Let's look at the positional arguments
first (i.e. the "big picture") and then look at the switches (i.e.
"little details").

THis doesn't matter much, but makes for better error messages I think.
At least I was very confused that a completely borked cmdline I passed
to cryptenrolled complained about some detail and let the major fuckup
pass...
src/cryptenroll/cryptenroll.c