Re: Switching groups with newgrp - how to get the new group with |GetTokenInformation()| ?

2024-02-24 Thread Corinna Vinschen via Cygwin
On Feb 23 19:45, Roland Mainz via Cygwin wrote: > On Fri, Feb 23, 2024 at 4:47 PM Corinna Vinschen via Cygwin > wrote: > > On Feb 23 14:03, Roland Mainz via Cygwin wrote: > > > Do you have any idea what is going wrong in this case ? > > > > Not sure about that. I'm not familiar with driver develo

Re: Switching groups with newgrp - how to get the new group with |GetTokenInformation()| ?

2024-02-24 Thread Corinna Vinschen via Cygwin
On Feb 23 22:15, Dan Shelton via Cygwin wrote: > HOWEVER, there is another Cygwin bug: > "getent group mywingrp1" does not list any group members, even after > "net localgroup mywingrp1 mywinuser44 /add", which is a POSIX > violation. Not a bug. Two problems: - Getting members of a group can be

Will all SIDs fit into |SECURITY_MAX_SID_SIZE| bytes ? / was: Re: Switching groups with newgrp - how to get the new group with |GetTokenInformation()| ?

2024-02-24 Thread Roland Mainz via Cygwin
On Thu, Feb 22, 2024 at 8:11 PM Corinna Vinschen via Cygwin wrote: > On Feb 22 18:38, Roland Mainz via Cygwin wrote: > > If I switch the current user's group with /usr/bin/newgrp, how can a > > (native) Win32 process use > > |GetTokenInformation(GetCurrentThreadToken(), ...)| to find out which > >

Re: Switching groups with newgrp - how to get the new group with |GetTokenInformation()| ?

2024-02-24 Thread Brian Inglis via Cygwin
On 2024-02-23 14:15, Dan Shelton via Cygwin wrote: On Fri, 23 Feb 2024 at 19:45, Roland Mainz via Cygwin wrote: After that /usr/bin/chgrp on Cygwin works on the NFSv4.1 filesystem, but if I do a /usr/bin/newgrp+/usr/bin/touch it will not create files with that new group, because nfsd_debug.exe o

Re: Will all SIDs fit into |SECURITY_MAX_SID_SIZE| bytes ? / was: Re: Switching groups with newgrp - how to get the new group with |GetTokenInformation()| ?

2024-02-24 Thread Corinna Vinschen via Cygwin
On Feb 24 15:38, Roland Mainz via Cygwin wrote: > On Thu, Feb 22, 2024 at 8:11 PM Corinna Vinschen via Cygwin > wrote: > > On Feb 22 18:38, Roland Mainz via Cygwin wrote: > > > If I switch the current user's group with /usr/bin/newgrp, how can a > > > (native) Win32 process use > > > |GetTokenInfo

LXDE rears its ugly head :-)

2024-02-24 Thread sciguy via Cygwin
Hello I am using Cygwin-X on Windows 10. It is a version from around 2020 or so. The window managers (I have a few that I have installed) seem to work, but it appears that LXDE likes to cover the toolbars and menubars, especially when GNOME is supposed to be running. Even if I "log off" of LX

Some repeated tasks at every update

2024-02-24 Thread Fergus Daly via Cygwin
There are 12 tasks never shown ".done" in /etc/postinstall/ (6 .dash and 6 .sh) and therefore repeated at every update. (Other users' installations might have 12 +/-.) They are not particularly intrusive (though they can take a while) but nor is their inclusion or the exclusion of many others at