* global rename of function dbus_username_from_current_process to _dbus_append_desire...
authorRalf Habacker <ralf.habacker@freenet.de>
Thu, 14 Jun 2007 18:25:22 +0000 (18:25 +0000)
committerRalf Habacker <ralf.habacker@freenet.de>
Thu, 14 Jun 2007 18:25:22 +0000 (18:25 +0000)
ChangeLog
dbus/dbus-auth-script.c
dbus/dbus-auth.c
dbus/dbus-keyring.c
dbus/dbus-sysdeps.h
dbus/dbus-userdb-util.c
dbus/dbus-userdb.c

index c64c100..5f5c73c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,10 @@
 2007-06-14  Ralf Habacker  <ralf.habacker@freenet.de>
+    
+       * global rename of function dbus_username_from_current_process
+       to _dbus_append_desired_identity. 
+       Approved by Havoc Pennington
+
+2007-06-14  Ralf Habacker  <ralf.habacker@freenet.de>
 
        * dbus/dbus-sysdeps-win.c: disabled DBusUserInfo related code
                (_dbus_append_desired_identity, _dbus_windows_user_is_process_owner):
index eb145e4..225569f 100644 (file)
@@ -522,7 +522,7 @@ _dbus_auth_script_run (const DBusString *filename)
                     goto out;
                   }
 
-                if (!_dbus_username_from_current_process (&u) ||
+                if (!_dbus_append_desired_identity (&u) ||
                     !_dbus_string_copy (u, 0, &username,
                                         _dbus_string_get_length (&username)))
                   {
index e47f6e3..7fe9671 100644 (file)
@@ -785,7 +785,7 @@ handle_client_initial_response_cookie_sha1_mech (DBusAuth   *auth,
 
   retval = FALSE;
 
-  if (!_dbus_username_from_current_process (&username))
+  if (!_dbus_append_desired_identity (&username))
     goto out_0;
 
   if (!_dbus_string_hex_encode (username, 0,
index 17c6b17..af8ef08 100644 (file)
@@ -738,7 +738,7 @@ _dbus_keyring_new_homedir (const DBusString *username,
     {
       const DBusString *const_homedir;
 
-      if (!_dbus_username_from_current_process (&username) ||
+      if (!_dbus_append_desired_identity (&username) ||
           !_dbus_homedir_from_current_process (&const_homedir))
         goto failed;
 
index 0cb92c6..154619a 100644 (file)
@@ -168,7 +168,7 @@ dbus_bool_t _dbus_credentials_add_from_current_process (DBusCredentials  *creden
 dbus_bool_t _dbus_credentials_parse_and_add_desired    (DBusCredentials  *credentials,
                                                         const DBusString *desired_identity);
 
-dbus_bool_t _dbus_username_from_current_process (const DBusString **username);
+dbus_bool_t _dbus_append_desired_identity (const DBusString **username);
 dbus_bool_t _dbus_append_desired_identity       (DBusString *str);
 
 dbus_bool_t _dbus_homedir_from_current_process  (const DBusString **homedir);
index 6e1653e..5f0ec56 100644 (file)
@@ -414,7 +414,7 @@ _dbus_userdb_test (const char *test_data_dir)
   unsigned long *group_ids;
   int n_group_ids, i;
 
-  if (!_dbus_username_from_current_process (&username))
+  if (!_dbus_append_desired_identity (&username))
     _dbus_assert_not_reached ("didn't get username");
 
   if (!_dbus_homedir_from_current_process (&homedir))
index c3ae8ef..5a5d909 100644 (file)
@@ -361,7 +361,7 @@ _dbus_user_database_flush_system (void)
  * @returns #FALSE if no memory
  */
 dbus_bool_t
-_dbus_username_from_current_process (const DBusString **username)
+_dbus_append_desired_identity (const DBusString **username)
 {
   _dbus_user_database_lock_system ();
   if (!init_system_db ())