Re: Windows security model

2025-02-16 Thread Bruno Haible via Gnulib discussion list
Mitch Capper wrote: > For requests to get the actual username I don't know if it is better to: > 1) Try the official API GetUserName but it requires an additional windows > library if it is not already included (which most of the time it is not) > https://learn.microsoft.com/en-us/windows/win32/api

Re: Windows security model

2025-02-16 Thread Mitch Capper
> The current state is an attempt to make code compile if it doesn't use > or . I don't know whether this state can be significantly > improved. But if you have reasonable suggestions, please show them! For requests to get the actual username I don't know if it is better to: 1) Try the official A

Re: Windows security model

2025-02-15 Thread Bruno Haible via Gnulib discussion list
Mitch Capper wrote: > *Windows Security / Permissions* > The no-op permissions/getuser/group branch is poor. Windows permissions are > not considered at all, and all permission calls just silently succeed. Any > user calls return the current user and group calls return a generic string. > In addit