Re: posix_spawn facility

2023-04-18 Thread Eric Blake via Cygwin
On Wed, Apr 19, 2023 at 12:10:34AM +0200, Bruno Haible wrote: > Eric Blake wrote: > > we now have implementations in the wild that differ in behavior, and > > use security as a reason for the divergence, it is worth getting that > > clarified in POSIX. I'll file a bug against POSIX shortly > > Fo

Re: Can not stat file with utf char U+F020

2023-04-18 Thread L A Walsh via Cygwin
I'm a bit confused as to what char you are trying to access/use, as U+F020 is in the Private Use area (PUA) Since it's in the PUA, it seems its meaning could differ by application/OS/User, no? I.e. have no set definition I mean you can use it in Cygwin to represent some character not usually

Re: posix_spawn facility

2023-04-18 Thread Bruno Haible via Cygwin
Eric Blake wrote: > we now have implementations in the wild that differ in behavior, and > use security as a reason for the divergence, it is worth getting that > clarified in POSIX. I'll file a bug against POSIX shortly For the reference, the systems that return ENOEXEC for posix_spawnp attempti

Re: Can not stat file with utf char U+F020

2023-04-18 Thread Gionatan Danti via Cygwin
Il 2023-04-17 15:46 Gionatan Danti via Cygwin ha scritto: First, I use the "dos" mount option to always trigger conversion of space and dot at filename end into F+00xx chars. Now I am able to create such strange-looking file (in Explorer) within cygwin itself. For example, touch "zzs " now result

Re: posix_spawn facility

2023-04-18 Thread Corinna Vinschen via Cygwin
Hi Eric, On Apr 18 15:49, Eric Blake via Cygwin wrote: > On Tue, Apr 18, 2023 at 11:25:11AM +0200, Corinna Vinschen via Cygwin wrote: > Jumping in to this conversation a bit belatedly, but as someone on the > Austin Group that can try to get an answer upstream... Many thanks for your input, it's

Re: posix_spawn facility

2023-04-18 Thread Eric Blake via Cygwin
On Tue, Apr 18, 2023 at 11:25:11AM +0200, Corinna Vinschen via Cygwin wrote: > Hi Bruno, > > On Apr 17 20:44, Bruno Haible via Cygwin wrote: > > Hi Corinna, Jumping in to this conversation a bit belatedly, but as someone on the Austin Group that can try to get an answer upstream... > But I'm not

Re: renameat2 works differently than on Linux

2023-04-18 Thread Corinna Vinschen via Cygwin
Hi Bruno, On Apr 18 14:47, Bruno Haible via Cygwin wrote: > Hi, > > The renameat2 function is "Linux-specific", says the man page [1]; however, > Cygwin implements it as well. > > In Cygwin 3.4.6, in a specific case, it operates differently than the > Linux function. Namely, if the old* argument

tar update problem

2023-04-18 Thread Kamran via Cygwin
Hi all Recently I have noticed that Win10-File-history not working for me. Somehow it is missing large part of my directory-tree. One guess is that tree is too deep. But that is another story. I tried to use "tar --update" to have some rudimentary backup, with some exclusions. Apparently it wor

renameat2 works differently than on Linux

2023-04-18 Thread Bruno Haible via Cygwin
Hi, The renameat2 function is "Linux-specific", says the man page [1]; however, Cygwin implements it as well. In Cygwin 3.4.6, in a specific case, it operates differently than the Linux function. Namely, if the old* arguments and the new* arguments are the same and the flag RENAME_NOREPLACE is sp

Re: ilogbl(NaN) is wrong

2023-04-18 Thread Corinna Vinschen via Cygwin
On Apr 18 13:21, Bruno Haible via Cygwin wrote: > POSIX [1] specifies that the return value of the functions ilogbf(), ilogb(), > ilogbl() for a NaN argument should all be the same, namely FP_ILOGBNAN. > > [1] https://pubs.opengroup.org/onlinepubs/9699919799/functions/ilogb.html > > In Cygwin 3.4

Re: wrong errno value set by readlinkat()

2023-04-18 Thread Corinna Vinschen via Cygwin
On Apr 18 12:21, Bruno Haible via Cygwin wrote: > Hi, > > When an empty path argument is passed to the readlinkat() function, > POSIX:2018 specifies that the function fails with error ENOENT: > > https://pubs.opengroup.org/onlinepubs/9699919799/functions/readlinkat.html > "These functions shall f

ilogbl(NaN) is wrong

2023-04-18 Thread Bruno Haible via Cygwin
POSIX [1] specifies that the return value of the functions ilogbf(), ilogb(), ilogbl() for a NaN argument should all be the same, namely FP_ILOGBNAN. [1] https://pubs.opengroup.org/onlinepubs/9699919799/functions/ilogb.html In Cygwin 3.4.6, the value of ilogbl(NaN) is not right. How to reproduce

wrong errno value set by readlinkat()

2023-04-18 Thread Bruno Haible via Cygwin
Hi, When an empty path argument is passed to the readlinkat() function, POSIX:2018 specifies that the function fails with error ENOENT: https://pubs.opengroup.org/onlinepubs/9699919799/functions/readlinkat.html "These functions shall fail if: ... [ENOENT] A component of path does not name an

Re: posix_spawn facility

2023-04-18 Thread Corinna Vinschen via Cygwin
Hi Bruno, On Apr 17 20:44, Bruno Haible via Cygwin wrote: > Hi Corinna, > > > > Would it be possible to change Cygwin's posix_spawnp implementation, > > > so that both tests succeed? > > > > Basically, yes, but... > > Thanks! > > > > Disclaimer: I have done my tests with Cygwin 2.9.0; so, if t

[ANNOUNCEMENT] tcsh 6.24.10-1

2023-04-18 Thread Corinna Vinschen via Cygwin-announce via Cygwin
The following packages have been uploaded to the Cygwin distribution: * tcsh-6.24.10-1 Tcsh is an enhanced but completely compatible version of csh, the C shell. Tcsh is a command language interpreter which can be used both as an interactive login shell and as a shell script command processor. T

[ANNOUNCEMENT] rebase 4.6.3-1

2023-04-18 Thread Corinna Vinschen via Cygwin-announce via Cygwin
The following packages have been uploaded to the Cygwin distribution: * rebase-4.6.3-1 This release introduces a new flag -c / --control-flow-guard to set the Control Flow Guard flag on executables per https://learn.microsoft.com/en-us/windows/win32/secbp/control-flow-guard This package contains