diff options
author | John (J5) Palmieri <johnp@redhat.com> | 2006-02-24 16:13:08 +0000 |
---|---|---|
committer | John (J5) Palmieri <johnp@redhat.com> | 2006-02-24 16:13:08 +0000 |
commit | 8e11aa26b46471d31aec7739881ba56a5a65b74f (patch) | |
tree | 847d471749ed8a895f184fe621b8c637242a9f03 | |
parent | 966214abad0f42bea245383b7c42f412a5a8454c (diff) |
2006-02-24 John (J5) Palmieri <johnp@redhat.com>
* patch from Sjoerd Simons <sjoerd at debian.org>:
* dbus/dbus-sysdeps-util.c (_dbus_group_info_free): Moved to
dbus/dbus-sysdeps.c
* dbus/dbus-userdb.c (_dbus_group_info_free_allocated): Don't
call _dbus_group_info_free_allocated which causes infinite loop,
correctly call _dbus_group_info_free
-rw-r--r-- | ChangeLog | 11 | ||||
-rw-r--r-- | dbus/dbus-sysdeps-util.c | 11 | ||||
-rw-r--r-- | dbus/dbus-sysdeps.c | 11 | ||||
-rw-r--r-- | dbus/dbus-userdb.c | 2 |
4 files changed, 23 insertions, 12 deletions
@@ -1,3 +1,14 @@ +2006-02-24 John (J5) Palmieri <johnp@redhat.com> + + * patch from Sjoerd Simons <sjoerd at debian.org>: + + * dbus/dbus-sysdeps-util.c (_dbus_group_info_free): Moved to + dbus/dbus-sysdeps.c + + * dbus/dbus-userdb.c (_dbus_group_info_free_allocated): Don't + call _dbus_group_info_free_allocated which causes infinite loop, + correctly call _dbus_group_info_free + 2006-02-20 Thiago Macieira <thiago.macieira@trolltech.com> * qt/qdbusinterface_p.h: diff --git a/dbus/dbus-sysdeps-util.c b/dbus/dbus-sysdeps-util.c index 9964b56..72db5d3 100644 --- a/dbus/dbus-sysdeps-util.c +++ b/dbus/dbus-sysdeps-util.c @@ -680,17 +680,6 @@ _dbus_group_info_fill_gid (DBusGroupInfo *info, return fill_group_info (info, gid, NULL, error); } -/** - * Frees the members of info (but not info itself). - * - * @param info the group info - */ -void -_dbus_group_info_free (DBusGroupInfo *info) -{ - dbus_free (info->groupname); -} - /** @} */ /* End of DBusInternalsUtils functions */ /** diff --git a/dbus/dbus-sysdeps.c b/dbus/dbus-sysdeps.c index 030d080..e8bd9b7 100644 --- a/dbus/dbus-sysdeps.c +++ b/dbus/dbus-sysdeps.c @@ -1754,6 +1754,17 @@ _dbus_user_info_free (DBusUserInfo *info) } /** + * Frees the members of info (but not info itself). + * + * @param info the group info + */ +void +_dbus_group_info_free (DBusGroupInfo *info) +{ + dbus_free (info->groupname); +} + +/** * Sets fields in DBusCredentials to DBUS_PID_UNSET, * DBUS_UID_UNSET, DBUS_GID_UNSET. * diff --git a/dbus/dbus-userdb.c b/dbus/dbus-userdb.c index 83a5769..9efc465 100644 --- a/dbus/dbus-userdb.c +++ b/dbus/dbus-userdb.c @@ -61,7 +61,7 @@ _dbus_group_info_free_allocated (DBusGroupInfo *info) if (info == NULL) /* hash table will pass NULL */ return; - _dbus_group_info_free_allocated (info); + _dbus_group_info_free (info); dbus_free (info); } |