]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
Prepend HOMEDRIVE to HOMEPATH so cross-volume accesses work.
authorMarcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
Tue, 16 Mar 2010 02:15:15 +0000 (03:15 +0100)
committerRalf Habacker <ralf.habacker@freenet.de>
Tue, 16 Mar 2010 22:09:48 +0000 (23:09 +0100)
dbus/dbus-sysdeps-win.c

index a63e5e36e6b2061fd46f172daf8c7c0f5f8480ad..db149b8602fc3f755b34b8ec331897e27d782f60 100644 (file)
@@ -2972,6 +2972,7 @@ _dbus_append_keyring_directory_for_credentials (DBusString      *directory,
   DBusString dotdir;
   dbus_uid_t uid;
   const char *homepath;
+  const char *homedrive;
 
   _dbus_assert (credentials != NULL);
   _dbus_assert (!_dbus_credentials_are_anonymous (credentials));
@@ -2979,6 +2980,12 @@ _dbus_append_keyring_directory_for_credentials (DBusString      *directory,
   if (!_dbus_string_init (&homedir))
     return FALSE;
 
+  homedrive = _dbus_getenv("HOMEDRIVE");
+  if (homedrive != NULL && *homedrive != '\0')
+    {
+      _dbus_string_append(&homedir,homedrive);
+    }
+
   homepath = _dbus_getenv("HOMEPATH");
   if (homepath != NULL && *homepath != '\0')
     {