]> git.ipfire.org Git - thirdparty/systemd.git/commit
homectl: split out parser parse_ssh_authorized_keys
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 8 Dec 2025 15:40:35 +0000 (16:40 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 12 Jan 2026 11:24:34 +0000 (12:24 +0100)
commitfbd7ca0ef093c027536f894601f95afe6e98cd03
tree25426ab3d2064680f00e5958da060c993470c798
parent689391f8c8f7b367c8b447018f9a0d1b91243fa8
homectl: split out parser parse_ssh_authorized_keys

The idea is to split out helpers to make parse_argv() itself more
manageable. If possible, the helpers will be reused in many places. But
even if not, as in this case, it seems good to split out the code for a
specific option. Always, the sd_json_variant** pointer or pointers that
are operated on are selected in the caller. This way it is easier to see
which of the identity variables is used and if two different ones are
used.
src/home/homectl.c