mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-01-24 08:40:30 +01:00
Prepend HOMEDRIVE to HOMEPATH so cross-volume accesses work.
This commit is contained in:
parent
378e090e71
commit
378ef9ea37
1 changed files with 7 additions and 0 deletions
|
|
@ -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')
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue