]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
homectl: rename 'emphasize_current' -> 'emphasize_current_password'
authorJelle van der Waa <jvanderwaa@redhat.com>
Tue, 3 Jun 2025 11:40:39 +0000 (13:40 +0200)
committerJelle van der Waa <jvanderwaa@redhat.com>
Wed, 4 Jun 2025 08:45:54 +0000 (10:45 +0200)
Other functions in this file use the same parameter naming.

src/home/homectl.c

index f7420708bf379b1f872fe815014fc1c36444bc0e..089bc2ac00fcb0eed4a20509673ebfbdc2b16a5c 100644 (file)
@@ -241,7 +241,7 @@ static int list_homes(int argc, char *argv[], void *userdata) {
 static int acquire_existing_password(
                 const char *user_name,
                 UserRecord *hr,
-                bool emphasize_current,
+                bool emphasize_current_password,
                 AskPasswordFlags flags) {
 
         _cleanup_strv_free_erase_ char **password = NULL;
@@ -271,7 +271,7 @@ static int acquire_existing_password(
         if (is_this_me(user_name) <= 0)
                 SET_FLAG(flags, ASK_PASSWORD_ACCEPT_CACHED|ASK_PASSWORD_PUSH_CACHE, false);
 
-        if (asprintf(&question, emphasize_current ?
+        if (asprintf(&question, emphasize_current_password ?
                      "Please enter current password for user %s:" :
                      "Please enter password for user %s:",
                      user_name) < 0)
@@ -1453,7 +1453,7 @@ static int create_home_common(sd_json_variant *input, bool show_enforce_password
                         r = acquire_existing_password(
                                         hr->user_name,
                                         hr,
-                                        /* emphasize_current= */ false,
+                                        /* emphasize_current_password= */ false,
                                         ASK_PASSWORD_ACCEPT_CACHED | ASK_PASSWORD_PUSH_CACHE);
                         if (r < 0)
                                 return r;