ls/stat on OneDrive causes download of files

2024-03-05 Thread Marcin Wisnicki via Cygwin
If I invoke ls or anything else that does stat inside OneDrive folder it will trigger download of all files. OneDrive uses placeholder files[1] to represent remote files. I'm guessing reading file content in stat is to support detection of actually executable files as in here[2]? I think this sh

Re: Native posix_spawn() in Cygwin?

2024-03-05 Thread Mark Geisert via Cygwin
On 3/5/2024 2:42 PM, Dan Shelton via Cygwin wrote: On Mon, 4 Mar 2024 at 07:45, Mark Geisert via Cygwin wrote: On 3/3/2024 7:27 PM, Dan Shelton via Cygwin wrote: [...] strace does not help, as I need the Win32 calls BELOW posix_spawn(), to see the implementation details. Check the source c

Re: Native posix_spawn() in Cygwin?

2024-03-05 Thread Dan Shelton via Cygwin
On Mon, 4 Mar 2024 at 07:45, Mark Geisert via Cygwin wrote: > > On 3/3/2024 7:27 PM, Dan Shelton via Cygwin wrote: > > On Tue, 27 Feb 2024 at 07:34, wrote: > >> > >> On Tue, Feb 27, 2024 at 06:54:42AM +0100, Dan Shelton via Cygwin wrote: > >>> On Tue, 27 Feb 2024 at 06:47, Brian Inglis via Cygwin

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

2024-03-05 Thread Dan Shelton via Cygwin
On Sat, 24 Feb 2024 at 14:11, Corinna Vinschen via Cygwin wrote: > > 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 >

Re: libfontconfig-devel-2.15.0-1 links wrong DLL

2024-03-05 Thread Takashi Yano via Cygwin
On Tue, 05 Mar 2024 20:48:38 +0900 (JST) Masamichi Hosoda wrote: > libfontconfig-devel-2.15.0-1 links wrong DLL (i.e. libfontconfig-1.dll) Thanks for the report. I'll fix that and release version 2.15.0-2. -- Takashi Yano -- Problem reports: https://cygwin.com/problems.html FAQ:

libfontconfig-devel-2.15.0-1 links wrong DLL

2024-03-05 Thread Masamichi Hosoda via Cygwin
Hi If I understand correctly, libfontconfig-devel-2.15.0-1 links wrong DLL (i.e. libfontconfig-1.dll) instead of correct DLL (i.e. cygfontconfig-1.dll). Since the wrong DLL does not exist, the executable file using libfontconfig-devel-2.15.0-1 cannot be executed. ``` $ cat foo.c #include int ma

Re: /usr/bin/fallocate -v -d -l 2 myfile takes forever

2024-03-05 Thread Mark Geisert via Cygwin
On 3/5/2024 12:46 AM, Cedric Blancher via Cygwin wrote: On Mon, 29 Jan 2024 at 10:46, Mark Geisert via Cygwin wrote: On 1/28/2024 11:56 PM, Mark Geisert via Cygwin wrote: On 1/28/2024 10:44 PM, Cedric Blancher via Cygwin wrote: Good morning! rm -f myfile touch myfile /usr/bin/fallocate -v -

Re: /usr/bin/fallocate -v -d -l 2 myfile takes forever

2024-03-05 Thread Mark Geisert via Cygwin
On 3/5/2024 12:46 AM, Cedric Blancher via Cygwin wrote: On Mon, 29 Jan 2024 at 10:46, Mark Geisert via Cygwin wrote: On 1/28/2024 11:56 PM, Mark Geisert via Cygwin wrote: On 1/28/2024 10:44 PM, Cedric Blancher via Cygwin wrote: Good morning! rm -f myfile touch myfile /usr/bin/fallocate -v -

Re: /usr/bin/fallocate -v -d -l 2 myfile takes forever

2024-03-05 Thread Cedric Blancher via Cygwin
On Mon, 29 Jan 2024 at 10:46, Mark Geisert via Cygwin wrote: > > On 1/28/2024 11:56 PM, Mark Geisert via Cygwin wrote: > > On 1/28/2024 10:44 PM, Cedric Blancher via Cygwin wrote: > >> Good morning! > >> > >> rm -f myfile > >> touch myfile > >> /usr/bin/fallocate -v -d -l myfile takes forever with

Re: Convert a file descriptor from Cygwin openat() to Win32 file HANDLE?

2024-03-05 Thread Cedric Blancher via Cygwin
On Mon, 4 Mar 2024 at 09:35, Andrey Repin wrote: > > Greetings, Cedric Blancher! > > > How can I convert a file descriptor from Cygwin openat() to Win32 file > > HANDLE? > > In general, you should not attempt to do such thing. > If you have a very specific idea in mind, it would be best to descri