Re: /usr/bin/sg in Cygwin?

2024-04-22 Thread Corinna Vinschen via Cygwin
On Apr 22 07:55, Cedric Blancher via Cygwin wrote: > On Mon, 22 Apr 2024 at 01:20, Dan Shelton via Cygwin > wrote: > > > > On Sat, 20 Apr 2024 at 07:39, Brian Inglis via Cygwin > > wrote: > > > > > > On 2024-04-19 17:47, Dan Shelton via Cygwin wrote: > > > > On Fri, 23 Feb 2024 at 22:25, Dan

Re: /usr/bin/sg in Cygwin?

2024-04-22 Thread Corinna Vinschen via Cygwin
On Apr 21 21:35, Eliot Moss via Cygwin wrote: > On 4/21/2024 7:20 PM, Dan Shelton via Cygwin wrote: > > On Sat, 20 Apr 2024 at 07:39, Brian Inglis via Cygwin > > wrote: > > > > > > On 2024-04-19 17:47, Dan Shelton via Cygwin wrote: > > > > On Fri, 23 Feb 2024 at 22:25, Dan Shelton wrote: > > >

Re: 3.5.x regression: misquoting command line arguments from native processes

2024-04-22 Thread Corinna Vinschen via Cygwin
Hi David, On Apr 20 08:43, David Allsopp via Cygwin wrote: > Hi Corinna, > > > On Apr 9 22:38, Corinna Vinschen via Cygwin wrote: > > > On Apr 3 16:53, David Allsopp via Cygwin wrote: > > > > I have what appears to be a regression in Cygwin 3.5.0 which, owi

Re: 3.5.x regression: misquoting command line arguments from native processes

2024-04-18 Thread Corinna Vinschen via Cygwin
Hi David, On Apr 9 22:38, Corinna Vinschen via Cygwin wrote: > On Apr 3 16:53, David Allsopp via Cygwin wrote: > > I have what appears to be a regression in Cygwin 3.5.0 which, owing to > > a CI system lagging behind, we've only just discovered. > > [...] > > $ ./

Re: Win32 FILE_BASIC_INFORMATION.*Time.QuadPart - which value should be used if filesystem does not support it, so Cygwin /usr/bin/stat lists the value as '-'?

2024-04-10 Thread Corinna Vinschen via Cygwin
On Apr 9 22:30, Brian Inglis via Cygwin wrote: > On 2024-04-09 15:14, Corinna Vinschen via Cygwin wrote: > > On Apr 5 04:26, Martin Wege via Cygwin wrote: > > > On Fri, Apr 5, 2024 at 2:05 AM Martin Wege > > > wrote: > > > > I have problems with debuggin

Re: Win32 FILE_BASIC_INFORMATION.*Time.QuadPart - which value should be used if filesystem does not support it, so Cygwin /usr/bin/stat lists the value as '-'?

2024-04-09 Thread Corinna Vinschen via Cygwin
On Apr 5 04:26, Martin Wege via Cygwin wrote: > On Fri, Apr 5, 2024 at 2:05 AM Martin Wege wrote: > > > > Hello, > > > > I have problems with debugging, so a quick help would be appreciated, > > as I cannot figure this out after several hours of digging. > > > > Cygwin /usr/bin/stat returns

Re: 3.5.x regression: misquoting command line arguments from native processes

2024-04-09 Thread Corinna Vinschen via Cygwin
Hi David, On Apr 3 16:53, David Allsopp via Cygwin wrote: > I have what appears to be a regression in Cygwin 3.5.0 which, owing to > a CI system lagging behind, we've only just discovered. > [...] > $ ./t.exe 'C:\Devel\реализация-mingw64\flexdll\flexdll_mingw64.o' > stat: cannot stat >

Re: cygwin 3.5.3-1 : "Device or resource busy" from 'find {pagefile,swapfile}.sys'

2024-04-04 Thread Corinna Vinschen via Cygwin
Hi Bruce, On Apr 4 07:22, Bruce Jerrick via Cygwin wrote: > As of cygwin 3.5.3-1, 'find' reports "Device or resource busy" and > exits with status 1 on these two files: > >   $ find /cygdrive/c/{pagefile,swapfile}.sys >   /cygdrive/c/pagefile.sys >   find: ‘/cygdrive/c/pagefile.sys’: Device or

Re: Cygwin file prefetch, block sizes?

2024-04-03 Thread Corinna Vinschen via Cygwin
On Apr 3 10:14, Corinna Vinschen via Cygwin wrote: > > https://learn.microsoft.com/en-us/windows-hardware/drivers/ddi/ntddk/ns-ntddk-_file_fs_sector_size_information > > If the filesystem is local and SSINFO_FLAGS_NO_SEEK_PENALTY is set, we > could stick to 64K. &

Re: Implementing /bin/ionice, ioprio_set() support with FILE_IO_PRIORITY_HINT_INFO?

2024-04-03 Thread Corinna Vinschen via Cygwin
On Apr 3 03:51, Martin Wege via Cygwin wrote: > Hello, > > could Cygwin implement support for /usr/bin/ionice and ioprio_set() > via FILE_IO_PRIORITY_HINT_INFO? Not ionice, the tool, but only ioprio_get/ioprio_set, the API. The problem is the functionality bit allowing to set the priority in

Re: Cygwin file prefetch, block sizes?

2024-04-03 Thread Corinna Vinschen via Cygwin
On Apr 3 00:35, Martin Wege via Cygwin wrote: > On Tue, Apr 2, 2024 at 3:17 PM Corinna Vinschen via Cygwin > wrote: > > > > On Apr 2 02:04, Martin Wege via Cygwin wrote: > > > Hello, > > > > > > Is there any document which describes how Cygwin and

Re: xargs completely broken under cygwin 3.6.0-0.108.gb7f5a33200a9

2024-04-02 Thread Corinna Vinschen via Cygwin
On Apr 2 08:38, Bruce Jerrick via Cygwin wrote: > 'xargs' is back to working with cygwin-3.6.0-0.109.ga0a25849f9dd . > > Thanks for the quick fix! > -- Bruce Thanks for the report and testing! Corinna -- Problem reports: https://cygwin.com/problems.html FAQ:

Re: Cygwin file prefetch, block sizes?

2024-04-02 Thread Corinna Vinschen via Cygwin
On Apr 2 02:04, Martin Wege via Cygwin wrote: > Hello, > > Is there any document which describes how Cygwin and Win32 file > prefetch and readahead work, and which sizes are used (e.g. always > read one full page even if only 16 bytes are requested?)? I'm not aware of any docs, but again, keep

Re: xargs completely broken under cygwin 3.6.0-0.108.gb7f5a33200a9

2024-04-02 Thread Corinna Vinschen via Cygwin
On Apr 2 12:44, Corinna Vinschen via Cygwin wrote: > On Apr 2 01:42, Bruce Jerrick via Cygwin wrote: > > I just did binary-search regression tests on the available > > old test versions, and found this: > > > > OK:  cygwin-3.6.0-0.86.gbfe2790e7bc4.tar.xz

Re: xargs completely broken under cygwin 3.6.0-0.108.gb7f5a33200a9

2024-04-02 Thread Corinna Vinschen via Cygwin
On Apr 2 01:42, Bruce Jerrick via Cygwin wrote: > I just did binary-search regression tests on the available > old test versions, and found this: > > OK:  cygwin-3.6.0-0.86.gbfe2790e7bc4.tar.xz > BAD: cygwin-3.6.0-0.92.g8bd6ba8f16ec.tar.xz Thanks, I found the offending patch, but I have to

Re: [tz] Ubuntu drops old-style links - tzdata split test package

2024-03-28 Thread Corinna Vinschen via Cygwin-apps
On Mar 28 02:25, Brian Inglis via Cygwin-apps wrote: > I have released and announced a test package of tzdata 2024a-2 split into > three install packages: base tzdata, optional tzdata-right, and redundant > tzdata-posix, each containing all the legacy zones so that tzset continues > to work as

Re: GetVersionEx() depreciated, what should be used instead for Windows 7/8/10?

2024-03-24 Thread Corinna Vinschen via Cygwin
On Mar 24 15:42, Christian Franke via Cygwin wrote: > Corinna Vinschen via Cygwin wrote: > > On Mar 23 10:57, Christian Franke via Cygwin wrote: > > > On Mar 21 16:15, Corinna Vinschen via Cygwin wrote: > > > > On Mar 21 09:58, Christian Franke via Cygwin wrote: &

Re: [tz] Ubuntu drops old-style links

2024-03-23 Thread Corinna Vinschen via Cygwin-apps
On Mar 23 10:38, Brian Inglis via Cygwin-apps wrote: > It looks to me that tzset.c prioritizes the Windows label over the country, > and it may be a better match prioritizing the country over the label, if the > country is not 001/"", nor ZZ, which are the generic entries. The Windows timezone is

Re: GetVersionEx() depreciated, what should be used instead for Windows 7/8/10?

2024-03-23 Thread Corinna Vinschen via Cygwin
On Mar 23 10:57, Christian Franke via Cygwin wrote: > On Mar 21 16:15, Corinna Vinschen via Cygwin wrote: > > On Mar 21 09:58, Christian Franke via Cygwin wrote: > > > > > .. > > I just gave it a try on W11. The results are even more funny than I > > anticip

Re: [tz] Ubuntu drops old-style links

2024-03-23 Thread Corinna Vinschen via Cygwin-apps
On Mar 22 10:02, Brian Inglis via Cygwin-apps wrote: > On 2024-03-21 03:36, Corinna Vinschen via Cygwin-apps wrote: > > We're generating the conversion from Windows to POSIX timezone via > > the conversion table from unicode.org: > > > > https://cygwin.com/cgit/newl

Re: GetVersionEx() depreciated, what should be used instead for Windows 7/8/10?

2024-03-23 Thread Corinna Vinschen via Cygwin
On Mar 22 18:13, Ray Satiro via Cygwin wrote: > On 3/21/2024 11:15 AM, Corinna Vinschen via Cygwin wrote: > >https://cygwin.com/cgit/newlib-cygwin/commit/?id=48511f3d3847c > > The code in that commit doesn't look right. RtlGetNtVersionNumbers is a void > function The co

sourceware test, please ignore

2024-03-21 Thread Corinna Vinschen via Cygwin
someproc 1234 find_fast_cwd: WARNING: Couldn't compute FAST_CWD pointer. Please report this problem to the public mailing list cygwin@cygwin.com -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:

Re: GetVersionEx() depreciated, what should be used instead for Windows 7/8/10?

2024-03-21 Thread Corinna Vinschen via Cygwin
On Mar 21 09:58, Christian Franke via Cygwin wrote: > Corinna Vinschen via Cygwin wrote: > > On Mar 20 12:39, Christian Franke via Cygwin wrote: > > > Corinna Vinschen via Cygwin wrote: > > > > You have to create an application with an application manifest

Re: [tz] Ubuntu drops old-style links

2024-03-21 Thread Corinna Vinschen via Cygwin-apps
On Mar 20 14:59, Brian Inglis via Cygwin-apps wrote: > On 2024-03-19 02:19, brian.ing...@systematicsw.ab.ca wrote: > > On 2024-03-18 21:12, Matt Johnson-Pint via tz wrote: > > > I just learned that Ubuntu Noble (24.04) decided to intentionally > > > split the tzdata package.  Old-style links such

Re: GetVersionEx() depreciated, what should be used instead for Windows 7/8/10?

2024-03-20 Thread Corinna Vinschen via Cygwin
On Mar 20 12:39, Christian Franke via Cygwin wrote: > Corinna Vinschen via Cygwin wrote: > > You have to create an application with an application manifest not > > supporting your OS. > > > > For Cygwin apps, this occured when you built, say, an executable under > &

Re: GetVersionEx() depreciated, what should be used instead for Windows 7/8/10?

2024-03-19 Thread Corinna Vinschen via Cygwin
On Mar 19 09:18, Bill Stewart via Cygwin wrote: > On Tue, Mar 19, 2024 at 9:01 AM Richard Campbell wrote: > > On Tue, Mar 19, 2024 at 9:04 AM Bill Stewart via Cygwin > > wrote: > > > > > Can you please clarify the circumstances under which the RtlGetVersion > > > function "may not return the

Re: No Win ACLs for NFS? Re: ACEs and ACLs

2024-03-19 Thread Corinna Vinschen via Cygwin
On Mar 19 08:55, Cedric Blancher via Cygwin wrote: > On Mon, 18 Mar 2024 at 15:43, Corinna Vinschen via Cygwin > wrote: > > > > On Mar 18 08:30, J. Terry Corbet via Cygwin wrote: > > > Thank you for the greatly needed assistance, but the reference to which > >

Re: ACEs and ACLs

2024-03-18 Thread Corinna Vinschen via Cygwin
On Mar 18 09:23, J. Terry Corbet via Cygwin wrote: > > Sorry, 84-yr old eyes sometimes don't work as well.  Thanks for confirming > that  nothing has changed with regards to these matters; clearly it is some > change in the way Windows 11 tries to cooperate with Windows 10 in the case > of mapped

Re: ACEs and ACLs

2024-03-18 Thread Corinna Vinschen via Cygwin
On Mar 18 08:30, J. Terry Corbet via Cygwin wrote: > Thank you for the greatly needed assistance, but the reference to which you > have pointed me says that noacl will be ignored in the case of ntfs file > systems. No, it doesn't say that. It says "The flag is ignored on NFS filesystems."

Re: ACEs and ACLs

2024-03-18 Thread Corinna Vinschen via Cygwin
On Mar 16 18:05, J. Terry Corbet via Cygwin wrote: > [...] > And here is the status that icacls reports back on the original, owning > workstation > after having use vim to modify the two files from that remote workstation. > > FileExp.txt NULL SID:(DENY)(Rc,S,REA,WEA,X,DC) >    

Re: Additional odd behavior after my upgrade to the latest CYGWIN64 version

2024-03-18 Thread Corinna Vinschen via Cygwin
On Mar 16 16:49, Michael Goldshteyn via Cygwin wrote: > Cygwin handles (filename) case insensitivity in a very weird way at the > Windows command prompt: > -- > c:\Users\Michael>set CYGWIN= > > c:\Users\Michael>printf "%q " 'a' 'A' "a" "A" a A > a A a A a A > > REM

Re: Unable to 'git push' to /git/cygwin-packages/*

2024-03-14 Thread Corinna Vinschen via Cygwin-apps
On Mar 14 16:07, Jon Turney via Cygwin-apps wrote: > On 14/03/2024 15:39, Mark Geisert via Cygwin-apps wrote: > > On 3/14/2024 2:42 AM, Jon Turney via Cygwin-apps wrote: > > > On 14/03/2024 05:45, Mark Geisert via Cygwin-apps wrote: > > > > Hi folks, > > > > I'm getting the error: > > > > > > > >

openssh 9.7p1-1

2024-03-11 Thread Corinna Vinschen via Cygwin-announce
The following packages have been uploaded to the Cygwin distribution: * openssh-9.7p1-1 OpenSSH is a program for logging into a remote machine and for executing commands on a remote machine. It can replace rlogin and rsh, providing encrypted communication between two machines.

Re: Request for a rough release timeline for Cygwin 3.5.2

2024-03-11 Thread Corinna Vinschen via Cygwin
On Mar 11 11:48, Kate Deplaix via Cygwin wrote: > Hi, > > Sorry to bother you all, > > Following the fixes (thank you so much again) of the two critical > issues in cygwin 3.5.0/3.5.1 > https://cygwin.com/pipermail/cygwin/2024-February/255561.html , we > were wondering if cygwin 3.5.2 is likely

Re: ls/stat on OneDrive causes download of files

2024-03-11 Thread Corinna Vinschen via Cygwin
On Mar 9 15:29, Marcin Wisnicki via Cygwin wrote: > I did more testing and found out that the problem does not happen in > cygwin by default because cygwin mounts with acl which doesn't do > header sniffing while msys uses noacl. > > Testing on an mp4 file in OneDrive, when I use noacl in cygwin

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

2024-03-11 Thread Corinna Vinschen via Cygwin
On Mar 11 02:28, Dan Shelton via Cygwin wrote: > On Wed, 6 Mar 2024 at 14:01, Corinna Vinschen via Cygwin > wrote: > > On Mar 5 23:38, Dan Shelton via Cygwin wrote: > > > Always editing /etc/nsswitch.conf > > > forth and back is not a elegant solution, aside from ra

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

2024-03-11 Thread Corinna Vinschen via Cygwin
On Mar 9 16:26, Glenn Strauss via Cygwin wrote: > On Wed, Mar 06, 2024 at 02:01:06PM +0100, Corinna Vinschen via Cygwin wrote: > > On Mar 5 23:38, Dan Shelton via Cygwin wrote: > > > On Sat, 24 Feb 2024 at 14:11, Corinna Vinschen via Cygwin > > > wrote: > >

Re: ls/stat on OneDrive causes download of files

2024-03-08 Thread Corinna Vinschen via Cygwin
On Mar 8 14:56, Corinna Vinschen via Cygwin wrote: > On Mar 8 08:15, Jeffrey Altman via Cygwin wrote: > > On 3/8/2024 7:52 AM, Thomas Wolff via Cygwin wrote: > > > Am 08.03.2024 um 11:37 schrieb Corinna Vinschen via Cygwin: > > > >    F

Re: ls/stat on OneDrive causes download of files

2024-03-08 Thread Corinna Vinschen via Cygwin
On Mar 8 08:15, Jeffrey Altman via Cygwin wrote: > On 3/8/2024 7:52 AM, Thomas Wolff via Cygwin wrote: > > Am 08.03.2024 um 11:37 schrieb Corinna Vinschen via Cygwin: > > > Yesterday I stumbled over a certain NtCreateFile flag: > > > > > >

Re: ls/stat on OneDrive causes download of files

2024-03-08 Thread Corinna Vinschen via Cygwin
Hi Jeffrey, On Mar 6 13:55, Jeffrey Altman via Cygwin wrote: > On 3/6/2024 12:19 PM, Corinna Vinschen via Cygwin wrote: > > We can add an explicit call to > > > >RtlSetProcessPlaceholderCompatibilityMode (PHCM_EXPOSE_PLACEHOLDERS); > > [...] > Files and dir

Re: ls/stat on OneDrive causes download of files

2024-03-07 Thread Corinna Vinschen via Cygwin
Hi Jeffrey, apart from the attribute stuff... On Mar 6 13:55, Jeffrey Altman via Cygwin wrote: > The default ProcessPlaceholderCompaibilityMode is PHCM_EXPOSE_PLACEHOLDERS > which makes the FILE_ATTRIBUTE flags and reparse tags visible. Microsoft > maintains a database of processes for which

Re: ls/stat on OneDrive causes download of files

2024-03-06 Thread Corinna Vinschen via Cygwin
Hi Jeffrey, looks like writing our mails overlapped: https://cygwin.com/pipermail/cygwin/2024-March/255622.html On Mar 6 13:55, Jeffrey Altman via Cygwin wrote: > On 3/6/2024 12:19 PM, Corinna Vinschen via Cygwin wrote: > > We can add an expl

Re: ls/stat on OneDrive causes download of files

2024-03-06 Thread Corinna Vinschen via Cygwin
On Mar 6 18:19, Corinna Vinschen via Cygwin wrote: > On Mar 6 06:54, Brian Inglis via Cygwin wrote: > > On 2024-03-06 06:28, Corinna Vinschen via Cygwin wrote: > > > On Mar 6 14:22, Corinna Vinschen via Cygwin wrote: > > > > Given these placeholder files are a

Re: ls/stat on OneDrive causes download of files

2024-03-06 Thread Corinna Vinschen via Cygwin
On Mar 6 06:54, Brian Inglis via Cygwin wrote: > On 2024-03-06 06:28, Corinna Vinschen via Cygwin wrote: > > On Mar 6 14:22, Corinna Vinschen via Cygwin wrote: > > > Given these placeholder files are actually reparse points of type > > > IO_REPARSE_TAG_FILE_PLAC

Re: ls/stat on OneDrive causes download of files

2024-03-06 Thread Corinna Vinschen via Cygwin
On Mar 6 14:22, Corinna Vinschen via Cygwin wrote: > On Mar 5 19:54, Marcin Wisnicki via Cygwin wrote: > > 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

Re: ls/stat on OneDrive causes download of files

2024-03-06 Thread Corinna Vinschen via Cygwin
On Mar 5 19:54, Marcin Wisnicki via Cygwin wrote: > 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

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

2024-03-06 Thread Corinna Vinschen via Cygwin
On Mar 5 23:38, Dan Shelton via Cygwin wrote: > 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&quo

Re: UNIX nobody/nogroup mapping to which Windows SID/account?

2024-03-04 Thread Corinna Vinschen via Cygwin
On Mar 3 14:45, Martin Wege via Cygwin wrote: > Hello, > > How can we map UNIX "nobody"/"nogroup" to Win32 SIDs/accounts? Cygwin > has entries for "nobody" in /etc/passwd and "nogroup" in /etc/group, > but these accounts have SIDs returned by /usr/bin/getent passwd and > /usr/bin/getent group

Re: openat(O_DIRECT) supported in Cygwin?

2024-02-28 Thread Corinna Vinschen via Cygwin
On Feb 27 17:46, Martin Wege via Cygwin wrote: > Hello, > > Does Cygwin support openat(O_DIRECT)? Which effect does O_DIRECT in > Cygwin have, and which underlying Windows API is used? https://cygwin.com/cgit/newlib-cygwin/tree/winsup/cygwin/fhandler/base.cc#n587 Corinna -- Problem reports:

Re: How can I get the group SID for a file in cmd.exe (powershell is not an option)?

2024-02-27 Thread Corinna Vinschen via Cygwin
On Feb 27 15:41, Cedric Blancher via Cygwin wrote: > Good afternoon! > > How can I get the group SID for a file in cmd.exe (powershell is not an > option)? > Is it possible to add an option to ls -l to list the user/group SIDs too? No, but you can use Cygwin tools: getent -w group $(ls -gn

Re: passwd/group/grent fixes for Cygwin 3.5.1?

2024-02-27 Thread Corinna Vinschen via Cygwin
On Feb 27 04:21, Dan Shelton via Cygwin wrote: > On Mon, 26 Feb 2024 at 10:18, Corinna Vinschen via Cygwin > wrote: > > > > On Feb 26 04:44, Dan Shelton via Cygwin wrote: > > > Hello! > > > > > > Can these 3 commits please be backported to the Cygwi

Re: cygwin1.dll 3.5.0-1 appears to cause spurious "error 127" with make 4.4.1

2024-02-26 Thread Corinna Vinschen via Cygwin
On Feb 26 20:08, Dimitry Andric via Cygwin wrote: > On 26 Feb 2024, at 20:03, Corinna Vinschen wrote: > > > > On Feb 26 17:34, Dimitry Andric via Cygwin wrote: > >> Hi, > >> > >> After a recent upgrade of a Cygwin installation, including cygwin1.dll > >> (see

Re: cygwin1.dll 3.5.0-1 appears to cause spurious "error 127" with make 4.4.1

2024-02-26 Thread Corinna Vinschen via Cygwin
On Feb 26 17:34, Dimitry Andric via Cygwin wrote: > Hi, > > After a recent upgrade of a Cygwin installation, including cygwin1.dll > (see https://cygwin.com/pipermail/cygwin/2024-February/255308.html) to > 3.5.0-1, I now get spurious "error 127" messages from (Cygwin's copy of) > GNU make

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-26 Thread Corinna Vinschen via Cygwin
On Feb 25 22:04, Roland Mainz via Cygwin wrote: > On Sat, Feb 24, 2024 at 7:57 PM Corinna Vinschen via Cygwin > wrote: > > > > On Feb 24 15:38, Roland Mainz via Cygwin wrote: > > > On Thu, Feb 22, 2024 at 8:11 PM Corinna Vinschen via Cygwin > > > wrote: >

Re: passwd/group/grent fixes for Cygwin 3.5.1?

2024-02-26 Thread Corinna Vinschen via Cygwin
On Feb 26 04:44, Dan Shelton via Cygwin wrote: > Hello! > > Can these 3 commits please be backported to the Cygwin 3.5.1 branch? > > 4 days agoCorinna VinschenCygwin: getgrent/getpwent: avoid local > enumeration...commit | commitdiff | tree > 4 days agoCorinna VinschenCygwin: getgrent: fix local

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 > > &

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

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 th

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

2024-02-23 Thread Corinna Vinschen via Cygwin
On Feb 23 14:03, 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 > > &

Re: BUG: Cygwin getent group refuses to list group added with net localgroup mygrp1 /add

2024-02-23 Thread Corinna Vinschen via Cygwin
On Feb 23 09:10, Dan Shelton via Cygwin wrote: > On Tue, 20 Feb 2024 at 21:45, Corinna Vinschen via Cygwin > wrote: > > > > On Feb 20 17:24, Dan Shelton via Cygwin wrote: > > > On Tue, 20 Feb 2024 at 10:57, Corinna Vinschen via Cygwin > > > wrote: > > &g

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

2024-02-22 Thread Corinna Vinschen via Cygwin
On Feb 22 18:38, Roland Mainz via Cygwin wrote: > Hi! > > > > 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 > group is the new "current group" (e.g. which

Re: binutils >= 2.41 makes .rsrc section read-only

2024-02-21 Thread Corinna Vinschen via Cygwin
On Feb 21 09:27, Corinna Vinschen via Cygwin wrote: > On Feb 20 21:39, Jeremy Drake via Cygwin wrote: > > On Tue, 20 Feb 2024, Corinna Vinschen wrote: > > > > > On Feb 19 21:41, Jeremy Drake via Cygwin wrote: > > > > 1) is there actually a good reason

Re: binutils >= 2.41 makes .rsrc section read-only

2024-02-21 Thread Corinna Vinschen via Cygwin
On Feb 20 21:39, Jeremy Drake via Cygwin wrote: > On Tue, 20 Feb 2024, Corinna Vinschen wrote: > > > On Feb 19 21:41, Jeremy Drake via Cygwin wrote: > > > 1) is there actually a good reason that _cygheap_start is in the .rsrc and > > > not the .cygheap section? > > > > As you know we got rid of

Re: Cygwin installer hangs when running post-install scripts

2024-02-20 Thread Corinna Vinschen via Cygwin
On Feb 20 10:33, Kevin Ushey via Cygwin wrote: > Hi Corinna, > > I just updated > https://gist.github.com/kevinushey/cdbd15cdf22e5cdcd094b0ad80347dce > with that output (windbg-output-2.txt); let me know if that gives you > what you need. Thank you! Not sure I'll follow up on this, ARM64

Re: BUG: Cygwin getent group refuses to list group added with net localgroup mygrp1 /add

2024-02-20 Thread Corinna Vinschen via Cygwin
On Feb 20 17:24, Dan Shelton via Cygwin wrote: > On Tue, 20 Feb 2024 at 10:57, Corinna Vinschen via Cygwin > wrote: > > > > On Feb 20 05:13, Dan Shelton via Cygwin wrote: > > > Hello! > > > > > > I think I found a rather nasty bug: > > &g

Re: BUG: gettimeofday() didn't handle first argument being NULL

2024-02-20 Thread Corinna Vinschen via Cygwin
On Feb 20 19:15, 109224573 via Cygwin wrote: > this code works on Linux, but not msys2: > > #include > #include > int main() { > struct timezone tz; > puts("a"); > gettimeofday(NULL, tz); > puts("b"); > } > > > I guess the reason would be > winsup/cygwin/times.cc Thanks for the bug report.

Re: binutils >= 2.41 makes .rsrc section read-only

2024-02-20 Thread Corinna Vinschen via Cygwin
On Feb 19 21:41, Jeremy Drake via Cygwin wrote: > This is probably the right thing to do, but breaks building msys2-runtime > (read: cygwin) 3.3, because the _cygheap_start symbol is actually in the > .rsrc section and code very early attempts to memset _cygheap_start. > Couple of questions: > >

Re: BUG: Cygwin getent group refuses to list group added with net localgroup mygrp1 /add

2024-02-20 Thread Corinna Vinschen via Cygwin
On Feb 20 05:13, Dan Shelton via Cygwin wrote: > Hello! > > I think I found a rather nasty bug: > 1. Add a new group with "net localgroup mygrp1 /add" > 2. Then list all groups with "getent group", the new group mygrp1 will > not show up. "getent group mygrp1" will list it, but this is useless >

Re: Cygwin installer hangs when running post-install scripts

2024-02-19 Thread Corinna Vinschen via Cygwin
Hi Kevin, On Feb 15 20:13, Corinna Vinschen via Cygwin wrote: > On Feb 15 09:46, Kevin Ushey via Cygwin wrote: > > https://gist.github.com/kevinushey/cdbd15cdf22e5cdcd094b0ad80347dce. > [...] > 0001`802b7054 db030094 bl ntdll!#RtlpReferenceCurrentDirectory >

Re: Group name madness: "CurrentSession" vs. "LogonSessionId_0_111590" vs. "NT AUTHORITY\LogonSessionId_0_111590" ...

2024-02-19 Thread Corinna Vinschen via Cygwin
On Feb 19 08:11, Roland Mainz via Cygwin wrote: > Hi! > > > > While implementing chown/chgrp support in the ms-nfs41-client (Windows > NFSv4.1 client filesystem driver) I encountered an issue with group > names. > > I tried a simple $ chgrp CurrentSession myfile #, which returned >

Re: Cygwin sqlite locking debug options still available?

2024-02-19 Thread Corinna Vinschen via Cygwin
On Feb 17 14:38, Martin Wege via Cygwin wrote: > On Tue, Feb 6, 2024 at 12:31 PM Martin Wege wrote: > > > > Hello! > > > > Is the debug mode for sqlite locking mode as described in > > https://cygwin.cygwin.narkive.com/nkjMGQga/test-sqlite3-3-7-17-1-1-7-19-locking-feature > > soehow still

Re: Cygwin installer hangs when running post-install scripts

2024-02-15 Thread Corinna Vinschen via Cygwin
On Feb 15 09:46, Kevin Ushey via Cygwin wrote: > Thanks -- I've put the associated WinDbg output up at > https://gist.github.com/kevinushey/cdbd15cdf22e5cdcd094b0ad80347dce. > (Sharing it externally just because it's relatively large.) Thank you! > The important thing to note is that

Re: Cygwin installer hangs when running post-install scripts

2024-02-15 Thread Corinna Vinschen via Cygwin
On Feb 14 13:49, Kevin Ushey via Cygwin wrote: > Thanks for your patience. Here's what I've got for the assembly around > get_dir. I added a bit of debug logging just so I could get the > function addresses: First of all, thanks for taking the time to debug this further! > C:\cygwin\bin>cygpath

Re: Cygwin installer hangs when running post-install scripts

2024-02-14 Thread Corinna Vinschen via Cygwin
On Feb 14 10:52, Corinna Vinschen via Cygwin wrote: > On Feb 13 15:48, Kevin Ushey via Cygwin wrote: > > Here's a bit more information from a debug build of cygwin; here I'm > > just trying to launch cygpath.exe: > > > > (gdb) f 1 > > #1 0x7ffa

Re: Cygwin installer hangs when running post-install scripts

2024-02-14 Thread Corinna Vinschen via Cygwin
On Feb 13 15:48, Kevin Ushey via Cygwin wrote: > Here's a bit more information from a debug build of cygwin; here I'm > just trying to launch cygpath.exe: > > (gdb) f 1 > #1 0x7ffa0123ba1f in find_fast_cwd_pointer () at > ../../../../winsup/cygwin/path.cc:4526 > 4526 const uint8_t *lock

Re: Cygwin installer hangs when running post-install scripts

2024-02-13 Thread Corinna Vinschen via Cygwin
On Feb 13 10:01, Kevin Ushey via Cygwin wrote: > On Tue, Feb 13, 2024 at 8:25 AM Corinna Vinschen wrote: > > On Feb 13 11:09, Corinna Vinschen via Cygwin wrote: > > > Other than that, the only thing you really could do at this point is to > > > check Cygwin's find_

Re: Cygwin installer hangs when running post-install scripts

2024-02-13 Thread Corinna Vinschen via Cygwin
On Feb 13 11:09, Corinna Vinschen via Cygwin wrote: > On Feb 12 14:38, Kevin Ushey via Cygwin wrote: > > For reference, I first bumped into this when using Git Bash as bundled > > with Git for Windows, but it sounds like the underlying issue may be > > in Cygwin. See h

Re: Win32 account SID lookup if user and group have the same name?

2024-02-13 Thread Corinna Vinschen via Cygwin
On Feb 13 02:12, Dan Shelton via Cygwin wrote: > Hello! > > How can I get the SID for either user XOR group if both have the same > name? Remember Cygwin, as Unix and Linux, allow that a user "danfsh" > can have his own group "danfsh". That works fine there, but on Win32 > there is only

Re: Cygwin installer hangs when running post-install scripts

2024-02-13 Thread Corinna Vinschen via Cygwin
On Feb 12 14:38, Kevin Ushey via Cygwin wrote: > Hello, > > I'm seeing an issue when attempting to install Cygwin where the > installer hangs while trying to run postinstall scripts (more > specifically, /etc/postinstall/0p_000_autorebase.dash). When the hang > occurs, I see a 'dash.exe' process

Re: Cygwin build from source is broken since binutils-2.42-1

2024-02-12 Thread Corinna Vinschen via Cygwin
On Feb 12 11:10, Christian Franke via Cygwin wrote: > This is not a binutils regression: A build from cygwin 3.5.0-1 src package > or current newlib-cygwin git main (bfb68a9) with new binutils-2.42-1 fails > with: > > " > In file included from ../../../../winsup/utils/dumper.cc:23: >

Re: Updated: setup (2.930)

2024-02-09 Thread Corinna Vinschen via Cygwin
On Feb 9 17:20, Corinna Vinschen via Cygwin wrote: > On Feb 9 13:36, Jon Turney via Cygwin wrote: > > On 09/02/2024 02:17, Kaz Kylheku via Cygwin wrote: > > > > > > I see the commit: > > > https://cygwin.com/cgit/cygwin-apps/setup/commit/?id=0122

Re: Updated: setup (2.930)

2024-02-09 Thread Corinna Vinschen via Cygwin
On Feb 9 13:36, Jon Turney via Cygwin wrote: > On 09/02/2024 02:17, Kaz Kylheku via Cygwin wrote: > > > > I see the commit: > > https://cygwin.com/cgit/cygwin-apps/setup/commit/?id=0122154811bacdd7dc042cff0c80bb0a36af360c > > > > I'm curious, what improvement arises out of looking up the > >

Re: [PATCH] In gcc 13, -Wall turns on -Woverloaded-virtual

2024-02-08 Thread Corinna Vinschen via Cygwin-apps
On Feb 8 16:07, Jon Turney via Cygwin-apps wrote: > On 07/02/2024 10:46, Corinna Vinschen via Cygwin-apps wrote: > > Also fix ambiguous method declaration by dropping a default parameter. > > --- > > Hi Jon, > > > > I'm not sure removing virtual from all Create

Re: cygsshd fails due to bad ownership or modes of /cygdrive/c/Users

2024-02-07 Thread Corinna Vinschen via Cygwin
On Feb 7 20:27, Corinna Vinschen via Cygwin wrote: > On Feb 7 20:23, ASSI via Cygwin wrote: > > Frank-Ulrich Sommer via Cygwin writes: > > > I'm trying to run cygsshd on my PC with Windows 11 and connect from a > > > linux machine. I have added the public key to >

Re: cygsshd fails due to bad ownership or modes of /cygdrive/c/Users

2024-02-07 Thread Corinna Vinschen via Cygwin
On Feb 7 20:23, ASSI via Cygwin wrote: > Frank-Ulrich Sommer via Cygwin writes: > > I'm trying to run cygsshd on my PC with Windows 11 and connect from a > > linux machine. I have added the public key to > > /cygdrive/c/Users/xxx/.ssh/authorized_keys and created a symbolic link > > from 

Re: cygsshd fails due to bad ownership or modes of /cygdrive/c/Users

2024-02-07 Thread Corinna Vinschen via Cygwin
On Feb 7 19:01, matthew patton via Cygwin wrote: > > The problem seems to be that OpenSSH does not even arrive at checking the > >home diretory> or the .ssh directory. It starts checking every directory in > >the path and fails already at "/cygdrive/c/Users" > I don't think we can win an

[PATCH] In gcc 13, -Wall turns on -Woverloaded-virtual

2024-02-07 Thread Corinna Vinschen via Cygwin-apps
Also fix ambiguous method declaration by dropping a default parameter. --- Hi Jon, I'm not sure removing virtual from all Create methods really fits the bill in all cases, are you? I had a go at fixing this while keeping the virtuality of the methods intact. While at it it also occured to me

Re: Restore SEM_FAILCRITICALERRORS [was: Aren't Windows System Error popups meant to be disabled in Cygwin?]

2024-02-03 Thread Corinna Vinschen via Cygwin
On Feb 3 13:39, Corinna Vinschen via Cygwin wrote: > On Feb 2 19:51, Corinna Vinschen via Cygwin wrote: > > On Feb 2 18:22, Corinna Vinschen via Cygwin wrote: > > > On Feb 2 14:56, David Allsopp via Cygwin wrote: > > > > On Fri, 2 Feb 2024 at 14:18, Cor

Re: Restore SEM_FAILCRITICALERRORS [was: Aren't Windows System Error popups meant to be disabled in Cygwin?]

2024-02-03 Thread Corinna Vinschen via Cygwin
On Feb 2 19:51, Corinna Vinschen via Cygwin wrote: > On Feb 2 18:22, Corinna Vinschen via Cygwin wrote: > > On Feb 2 14:56, David Allsopp via Cygwin wrote: > > > On Fri, 2 Feb 2024 at 14:18, Corinna Vinschen via Cygwin wrote: > > > > Is it actually a sa

Re: Restore SEM_FAILCRITICALERRORS [was: Aren't Windows System Error popups meant to be disabled in Cygwin?]

2024-02-02 Thread Corinna Vinschen via Cygwin
On Feb 2 18:22, Corinna Vinschen via Cygwin wrote: > On Feb 2 14:56, David Allsopp via Cygwin wrote: > > On Fri, 2 Feb 2024 at 14:18, Corinna Vinschen via Cygwin wrote: > > > On Feb 2 13:35, David Allsopp via Cygwin wrote: > > > > Not really suggesting it b

Re: Restore SEM_FAILCRITICALERRORS [was: Aren't Windows System Error popups meant to be disabled in Cygwin?]

2024-02-02 Thread Corinna Vinschen via Cygwin
On Feb 2 14:56, David Allsopp via Cygwin wrote: > On Fri, 2 Feb 2024 at 14:18, Corinna Vinschen via Cygwin wrote: > > On Feb 2 13:35, David Allsopp via Cygwin wrote: > > > Not really suggesting it be done this way (it feels more complicated > > > than just reverting th

Re: Restore SEM_FAILCRITICALERRORS [was: Aren't Windows System Error popups meant to be disabled in Cygwin?]

2024-02-02 Thread Corinna Vinschen via Cygwin
On Feb 2 13:35, David Allsopp via Cygwin wrote: > Jon Turney via Cygwin wrote: > > > > I'm sympathetic, and personally I would prefer to revert the patch and > > > stick to SEM_FAILCRITICALERRORS by default. > > > > > > The question is this: Why does, apparently, everybody expect Cygwin to > > >

Re: Restore SEM_FAILCRITICALERRORS [was: Aren't Windows System Error popups meant to be disabled in Cygwin?]

2024-02-02 Thread Corinna Vinschen via Cygwin
On Feb 2 09:43, David Allsopp via Cygwin wrote: > On Thu, 1 Feb 2024 at 10:02, Corinna Vinschen via Cygwin > wrote: > > > > The behaviour changed in 2020 > > > > https://cygwin.com/git/?p=newlib-cygwin.git;a=commitdiff;h=21ec498d7f912 > > > > not witho

[ANNOUNCEMENT] cygwin 3.5.0-1

2024-02-01 Thread Corinna Vinschen via Cygwin
I'm happy to announce update of the first Cygwin 3.5 release == IMPORTANT DEPRECATION NOTES == - Cygwin 3.4.10 was the LAST major

cygwin 3.5.0-1

2024-02-01 Thread Corinna Vinschen via Cygwin-announce
I'm happy to announce update of the first Cygwin 3.5 release == IMPORTANT DEPRECATION NOTES == - Cygwin 3.4.10 was the LAST major

Re: Aren't Windows System Error popups meant to be disabled in Cygwin?

2024-02-01 Thread Corinna Vinschen via Cygwin
On Feb 1 08:22, David Allsopp via Cygwin wrote: > > x86_64-w64-mingw32-gcc produces a Windows program, why Cygwin should > > be involved in the execution ? > > I perhaps should have made that crystal clear - in running "./test", > I'm invoking that excecutable _from_ a Cygwin program (in this

[HEADSUP] any usage of cygwin_internal(CW_CMDLINE) in any maintained package?

2024-01-30 Thread Corinna Vinschen via Cygwin-apps
Hi guys, is anybody of you maintaining a package (or is aware of any package in the Cygwin distro) which is using the cygwin_internal(CW_CMDLINE) call? If not, I will redefine the usage of this call in Cygwin 3.6. The reason is that it's practically unusable, unless the caller only fetches the

Re: CYGWIN 1.5.3 END OF SUPPORT OR LIFE

2024-01-30 Thread Corinna Vinschen via Cygwin
Sorry, I have to correct myself in terms of the license: On Jan 30 16:16, Corinna Vinschen via Cygwin wrote: > Hi Marvin, > > On Jan 29 22:24, Marvin.C.Scott--- via Cygwin wrote: > > Good day - > > > > I represent a logistics team of users of CYGWIN freeware fo

Re: CYGWIN 1.5.3 END OF SUPPORT OR LIFE

2024-01-30 Thread Corinna Vinschen via Cygwin
Hi Marvin, On Jan 29 22:24, Marvin.C.Scott--- via Cygwin wrote: > Good day - > > I represent a logistics team of users of CYGWIN freeware for a > government contract. In my role I am responsible for tracking support > and end of life for software assets. > > In the before mentioned effort

Re: arc4random does not reseed after using fork()

2024-01-29 Thread Corinna Vinschen via Cygwin
Hi Johnothan, On Jan 26 22:06, Johnothan King via Cygwin wrote: > Hello, > > While testing ksh93u+m's recently added SRANDOM variable[1], I have > discovered a bug in Cygwin's arc4random function. After using fork(), > arc4random does not reseed itself, which causes the results to become >

  1   2   3   4   5   6   7   8   >