From ef5444c75c4786599129040631b8768915c22ffc Mon Sep 17 00:00:00 2001 From: kwm Date: Fri, 29 Jun 2012 08:46:28 +0000 Subject: Update to 0.6.22. This fixes CVE-2012-2737 git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@16973 df743ca5-7f9a-e211-a948-0013205c9059 --- sysutils/accountsservice/Makefile | 2 +- sysutils/accountsservice/distinfo | 4 +-- sysutils/accountsservice/files/patch-src_daemon.c | 31 ++++++++++++++++++++--- 3 files changed, 30 insertions(+), 7 deletions(-) (limited to 'sysutils/accountsservice') diff --git a/sysutils/accountsservice/Makefile b/sysutils/accountsservice/Makefile index 5459c96af..c1a8f4a1a 100644 --- a/sysutils/accountsservice/Makefile +++ b/sysutils/accountsservice/Makefile @@ -6,7 +6,7 @@ # PORTNAME= accountsservice -PORTVERSION= 0.6.21 +PORTVERSION= 0.6.22 CATEGORIES= sysutils devel MASTER_SITES= http://www.freedesktop.org/software/${PORTNAME}/ diff --git a/sysutils/accountsservice/distinfo b/sysutils/accountsservice/distinfo index 81f74bc30..491f27e95 100644 --- a/sysutils/accountsservice/distinfo +++ b/sysutils/accountsservice/distinfo @@ -1,2 +1,2 @@ -SHA256 (accountsservice-0.6.21.tar.xz) = adf681cef68852b65d57de7102483ef0cf31175ea0bbc3bad59957259dc64192 -SIZE (accountsservice-0.6.21.tar.xz) = 329916 +SHA256 (accountsservice-0.6.22.tar.xz) = 851e05aa593cd8e3ed5c635a7fee3ffc0f418d3db2f28c5ebd6b7503294e3bdd +SIZE (accountsservice-0.6.22.tar.xz) = 331028 diff --git a/sysutils/accountsservice/files/patch-src_daemon.c b/sysutils/accountsservice/files/patch-src_daemon.c index 3f82ed385..ef24613ba 100644 --- a/sysutils/accountsservice/files/patch-src_daemon.c +++ b/sysutils/accountsservice/files/patch-src_daemon.c @@ -1,6 +1,15 @@ ---- src/daemon.c.orig 2012-05-08 17:14:59.000000000 +0200 -+++ src/daemon.c 2012-05-22 10:45:14.000000000 +0200 -@@ -70,6 +70,7 @@ +--- src/daemon.c.orig 2012-06-28 17:24:55.000000000 +0200 ++++ src/daemon.c 2012-06-29 10:44:09.000000000 +0200 +@@ -49,7 +49,7 @@ + #define PATH_SHADOW "/etc/shadow" + #define PATH_NOLOGIN "/sbin/nologin" + #define PATH_FALSE "/bin/false" +-#define PATH_GDM_CUSTOM "/etc/gdm/custom.conf" ++#define PATH_GDM_CUSTOM "/usr/local/etc/gdm/custom.conf" + + static const char *default_excludes[] = { + "bin", +@@ -68,6 +68,7 @@ "nobody4", "noaccess", "postgres", @@ -8,7 +17,7 @@ "pvm", "rpm", "nfsnobody", -@@ -79,6 +80,7 @@ +@@ -77,6 +78,7 @@ "games", "man", "at", @@ -16,3 +25,17 @@ NULL }; +@@ -315,7 +317,13 @@ + g_hash_table_foreach (daemon->priv->users, listify_hash_values_hfunc, &old_users); + g_slist_foreach (old_users, (GFunc) g_object_ref, NULL); + ++#ifdef HAVE_FGETPWENT + while ((pwent = fgetpwent (fp)) != NULL) { ++#else ++ setpwent(); ++ ++ while ((pwent = getpwent ()) != NULL) { ++#endif + /* Skip system users... */ + if (daemon_local_user_is_excluded (daemon, pwent->pw_name, pwent->pw_shell)) { + g_debug ("skipping user: %s", pwent->pw_name); -- cgit v1.2.3