From: Yu Watanabe Date: Wed, 12 Mar 2025 19:52:48 +0000 (+0900) Subject: homectl: insert missing 'else' X-Git-Tag: v258-rc1~1091^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26835b3e98303c1470b5bb68914ced6fca84d5ce;p=thirdparty%2Fsystemd.git homectl: insert missing 'else' Follow-up for cc14c14782d542b35fa12bfdadfd64ffa700cedf. Fixes CID#1593168 and CID#1593166. --- diff --git a/src/home/homectl.c b/src/home/homectl.c index 291ce8eaf17..65243e4a6fe 100644 --- a/src/home/homectl.c +++ b/src/home/homectl.c @@ -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;