]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
homectl: insert missing 'else'
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 12 Mar 2025 19:52:48 +0000 (04:52 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 12 Mar 2025 19:56:49 +0000 (04:56 +0900)
Follow-up for cc14c14782d542b35fa12bfdadfd64ffa700cedf.
Fixes CID#1593168 and CID#1593166.

src/home/homectl.c

index 291ce8eaf1753649ebce5531e178b1bd2f28840e..65243e4a6fe9c9ac920ead38d21357ad86dec83e 100644 (file)
@@ -2548,7 +2548,7 @@ static int create_or_register_from_credentials(void) {
                 const char *e;
                 if ((e = startswith(de->d_name, "home.create.")))
                         op = OPERATION_CREATE;
-                if ((e = startswith(de->d_name, "home.register.")))
+                else if ((e = startswith(de->d_name, "home.register.")))
                         op = OPERATION_REGISTER;
                 else
                         continue;