aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2007-04-29 13:31:06 +0800
committermarcus <marcus@FreeBSD.org>2007-04-29 13:31:06 +0800
commit6ef0514a8a7b39869bf271cb0efc6dcda89bfc13 (patch)
tree20153f02076eb30f62efccfecea3f805df54ba4a
parent9123fc80a02d4d86142809a833e7c8aa259d8339 (diff)
downloadfreebsd-ports-gnome-6ef0514a8a7b39869bf271cb0efc6dcda89bfc13.tar.gz
freebsd-ports-gnome-6ef0514a8a7b39869bf271cb0efc6dcda89bfc13.tar.zst
freebsd-ports-gnome-6ef0514a8a7b39869bf271cb0efc6dcda89bfc13.zip
Handle password generation using pw instead of liboobs so the password
encryption algorithm is properly respected. PR: 112218 Submitted by: Sergio Lenzi <lenzi@k1.com.br>
-rw-r--r--sysutils/gnome-system-tools/Makefile1
-rw-r--r--sysutils/gnome-system-tools/files/patch-src_users_user-settings.c15
2 files changed, 16 insertions, 0 deletions
diff --git a/sysutils/gnome-system-tools/Makefile b/sysutils/gnome-system-tools/Makefile
index 3bffbe4ee0ff..53b0ed251c49 100644
--- a/sysutils/gnome-system-tools/Makefile
+++ b/sysutils/gnome-system-tools/Makefile
@@ -7,6 +7,7 @@
PORTNAME= gnome-system-tools
PORTVERSION= 2.18.1
+PORTREVISION= 1
CATEGORIES= sysutils gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/gnome-system-tools/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}
diff --git a/sysutils/gnome-system-tools/files/patch-src_users_user-settings.c b/sysutils/gnome-system-tools/files/patch-src_users_user-settings.c
new file mode 100644
index 000000000000..c19a384a9d10
--- /dev/null
+++ b/sysutils/gnome-system-tools/files/patch-src_users_user-settings.c
@@ -0,0 +1,15 @@
+--- src/users/user-settings.c.orig Sun Apr 22 23:32:58 2007
++++ src/users/user-settings.c Sun Apr 22 23:34:18 2007
+@@ -632,10 +632,10 @@
+ password_changed = GPOINTER_TO_INT (g_object_get_data (G_OBJECT (widget), "changed"));
+
+ if (password_changed)
+- oobs_user_set_password (user, gtk_entry_get_text (GTK_ENTRY (widget)));
++ oobs_user_set_crypted_password (user, gtk_entry_get_text (GTK_ENTRY (widget)));
+ } else {
+ widget = gst_dialog_get_widget (tool->main_dialog, "user_settings_random_passwd");
+- oobs_user_set_password (user, gtk_entry_get_text (GTK_ENTRY (widget)));
++ oobs_user_set_crypted_password (user, gtk_entry_get_text (GTK_ENTRY (widget)));
+ }
+
+ group = get_main_group (oobs_user_get_login_name (user));