From ca6cac2b2d1b46cc29c9a58ecbf0614f88d2f47a Mon Sep 17 00:00:00 2001 From: Jelle van der Waa Date: Tue, 3 Jun 2025 13:40:39 +0200 Subject: [PATCH] homectl: rename 'emphasize_current' -> 'emphasize_current_password' Other functions in this file use the same parameter naming. --- src/home/homectl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/home/homectl.c b/src/home/homectl.c index f7420708bf3..089bc2ac00f 100644 --- a/src/home/homectl.c +++ b/src/home/homectl.c @@ -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; -- 2.47.3