Issue with _dbus_write_socket on windows
Ralf Habacker
ralf.habacker at freenet.de
Sun Nov 19 13:40:12 PST 2006
Christian Ehrlicher schrieb:
> Ralf Habacker schrieb:
>
>> Peter Kümmel schrieb:
>>
>>> Havoc Pennington wrote:
>>>
>>>
>>>> Peter Kümmel wrote:
>>>>
>>>>
>>>>> we already have a 2-way mapping between dbus_uid_t and SID
>>>>>
>>>>>
>>>>>
>>>> Are you putting the dbus_uid_t in the lock name? Remember the dbus_uid_t
>>>> is per-process.
>>>>
>>>> Havoc
>>>>
>>>>
>>>>
>>> This is a problem, indeed. So we must find a other way.
>>>
>>>
>>>
>> Wouldn't be the current user name or user sid uniq enough ?
>>
>>
> I'm using GetUserName() now, maybe GetUserNameEx() is the better way
> (because it can return a guid), but this function is only available on
> w2k and up.
>
it may be required to lower case the resulting string because a user may
login using the name 'user' or 'User', which is the same for windows,
but results in different mutex names.
Ralf
More information about the dbus
mailing list