From d3f30b9d2c5fcaa01de6da8e53432636a5841cc8 Mon Sep 17 00:00:00 2001 From: Ivan Dmitrievich Yartsev Date: Fri, 3 Apr 2026 11:03:52 +0600 Subject: [PATCH] Fixed root password revealing --- source/ubinstall-gtk-users.c | 3 +-- source/ubinstall-gtk.c | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/ubinstall-gtk-users.c b/source/ubinstall-gtk-users.c index 1a95f56..94c7d0e 100644 --- a/source/ubinstall-gtk-users.c +++ b/source/ubinstall-gtk-users.c @@ -172,7 +172,7 @@ yon_user_struct *yon_user_struct_new(){ g_object_set_data(G_OBJECT(user->MainBox),"yon_user_struct",user); g_object_set_data(G_OBJECT(user->AdminCheck),"yon_user_struct",user); - yon_gtk_entry_set_password_visibility_icon(GTK_ENTRY(user->PasswordEntry)); + yon_gtk_entry_set_password_visibility_icon(GTK_ENTRY(user->PasswordEntry)); g_signal_connect(G_OBJECT(user->PasswordCombo),"changed",G_CALLBACK(yon_gtk_widget_set_sensitive_from_combo_box),user->PasswordEntry); g_signal_connect(G_OBJECT(user->PasswordCombo),"changed",G_CALLBACK(yon_gtk_widget_set_sensitive_from_combo_box),user->PasswordButton); @@ -209,7 +209,6 @@ void yon_user_init(main_window *widgets){ gtk_combo_box_text_remove_all(GTK_COMBO_BOX_TEXT(widgets->UserRootPasswordCombo)); gtk_combo_box_text_append(GTK_COMBO_BOX_TEXT(widgets->UserRootPasswordCombo),NULL,DEFAULT_LABEL); gtk_combo_box_text_append(GTK_COMBO_BOX_TEXT(widgets->UserRootPasswordCombo),NULL,SET_PASSWORD_LABEL); - yon_gtk_entry_set_password_visibility_icon(GTK_ENTRY(widgets->UserRootPasswordEntry)); char *root_password = config(root_password_parameter); if (yon_char_is_empty(root_password)){ root_password = config(DEFAULTROOTPASSWD_system_parameter); diff --git a/source/ubinstall-gtk.c b/source/ubinstall-gtk.c index 02388e9..bc256c4 100644 --- a/source/ubinstall-gtk.c +++ b/source/ubinstall-gtk.c @@ -824,6 +824,7 @@ void yon_main_window_create(main_window *widgets){ g_signal_connect(G_OBJECT(widgets->AboutMenuItem),"activate",G_CALLBACK(yon_on_about),NULL); g_signal_connect(G_OBJECT(widgets->DocumentationMenuItem),"activate",G_CALLBACK(on_open_documentation_confirmation),WIKI_LINK); } + yon_gtk_entry_set_password_visibility_icon(GTK_ENTRY(widgets->UserRootPasswordEntry)); yon_window_config_setup(GTK_WINDOW(widgets->MainWindow));