Re: /usr/bin/sg in Cygwin?

2024-04-22 Thread Corinna Vinschen via Cygwin
rp cygwin-3.6.0-0.109.ga0a25849f9dd Reason being that the functionality under Windows is pretty limited compared to "real" POSIX systems... https://cygwin.com/cygwin-ug-net/newgrp.html ...and fetching the default environment of the user (to implement the dash option '-') is

Re: /usr/bin/sg in Cygwin?

2024-04-22 Thread Corinna Vinschen via Cygwin
bmtog3 (1) - convert a PBM image into a Group 3 MH fax file > > > > newgrp(1) is USELESS. It only opens an interactive shell, but does not > > allow the user to execute a non-interactive script with the requested > > group like bash -c does. > > ?? > > The m

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: /proc//{cwd, root} links to for cygrunsrv, daemons, and shells

2024-04-09 Thread Corinna Vinschen
On Apr 9 10:38, Brian Inglis wrote: > On 2024-04-09 07:08, Corinna Vinschen wrote: > > That's typically a permission problem. On Linux you get something like > > > >ls: cannot read symbolic link '/proc/1/cwd': Permission denied > > Thanks Corinna, > > T

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
pported. Cygwin is handling Windows timestamps this way, but I can't find this in documentation ATM. But the FS driver can also just fill the CreationTime field with the same value as LastWriteTime or ChangeTime. MSFT NFS does that. Corinna -- Problem reports: https://cygwin.com/problems.

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

2024-04-09 Thread Corinna Vinschen via Cygwin
testing in an hour or two. Please give it a try. Thanks, Corinna -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple

Re: /proc//{cwd, root} links to for cygrunsrv, daemons, and shells

2024-04-09 Thread Corinna Vinschen
nformation. I didn't look into the code for a while but it seems we don't check why we couldn't connect to a process to fetch the info. IIRC the current fhandler_process framework doesn't have a way to communicate that info. If you want to change that, feel free! Corinna

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

2024-04-04 Thread Corinna Vinschen via Cygwin
in an hour or two. This will go into 3.5.4, of course. Corinna -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple

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
lement stuff and we all have another job keeping the money coming, and that job takes priority. We don't want to see stuff like the xz debacle in Cygwin, right? Corinna -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:

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
Cygwin? Hardcoded in Cygwin since 2017, based on a discussion in terms of file access performance, especially when using stdio.h functions: https://cygwin.com/cgit/newlib-cygwin/commit/?id=7bef7db5ccd9c Corinna -- Problem reports: https://cygwin.com/problems.html FAQ: htt

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
tch, but I have to think about a solution. Stay tuned, Corinna -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple

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

2024-03-28 Thread Corinna Vinschen via Cygwin-apps
s.list /usr/share/zoneinfo/posixrules That's all. And given that space is not one of the major limiting factors anymore... cyg$ du -sh /usr/share/zoneinfo 6.6M/usr/share/zoneinfo fed$ du -sh /usr/share/zoneinfo 4.6M /usr/share/zoneinfo ...I do wonder a bit if this split is really necessary after all. Corinna

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
t currently just prints the first, but perhaps it should print all relevant > entries and the caller should handle the alternatives? tzset is called from the shell default profile. It has to use exactly one, valid entry, so time works as desired without forcing interactivity. If the user doesn't like it, the user can always override tzset's choice in her own profile. Corinna

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
-from-unicode.org Plus a few (7, actually) mappings the Unicode consortium missed in the list (or maybe they are available in the meantime, needs checking). This is the minimum list of timezone info we need in the tzdata DB. Corinna

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
ndows 10 support. In this case, RtlGetVersion returns an OS version 6.3 even when running under the 10.0 kernel. This behaviour exists back 'til Windows Vista. Fortunately Microsoft didn't change the required manifest GUID entry since the introduction of Windows 10. Even Windows 11 is still using th

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: [PATCH] winsup/cygwin/fhandler/proc.cc: format_proc_cpuinfo() Linux 6.8 cpuinfo flags

2024-03-18 Thread Corinna Vinschen
On Mar 18 11:21, Brian Inglis wrote: > On 2024-03-18 09:45, Corinna Vinschen wrote: > > I see. I just don't understands the difference between, say, > > > >ftcprint (features1, 21, "avx512ifma"); /* vec int FMA */ > > + /* ftcprint (features1, 22, &quo

Re: ACEs and ACLs

2024-03-18 Thread Corinna Vinschen via Cygwin
e what you expect in that case. Thanks, Corinna -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple

Re: [PATCH] winsup/cygwin/fhandler/proc.cc: format_proc_cpuinfo() Linux 6.8 cpuinfo flags

2024-03-18 Thread Corinna Vinschen
On Mar 18 08:10, Brian Inglis wrote: > On 2024-03-18 03:33, Corinna Vinschen wrote: > > Hi Brian, > > > > On Mar 16 10:44, Brian Inglis wrote: > > > add Linux 6.8 cpuinfo flags: > > > Intel 0x0007:1 eax:17 fredFlexible Return and Event >

Re: ACEs and ACLs

2024-03-18 Thread Corinna Vinschen via Cygwin
hasn't changed for years either. ¯\_(ツ)_/¯ Corinna -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple

Re: ACEs and ACLs

2024-03-18 Thread Corinna Vinschen via Cygwin
cl" flag, see https://cygwin.com/cygwin-ug-net/using.html#cygdrive but keep in mind that this also affects local paths if you access them via the cygdrive prefix. HTH, Corinna -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple

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

2024-03-18 Thread Corinna Vinschen via Cygwin
completely case sensitive, which is very undesirable when compared to the > fact that other Windows tools do not care about file case (i.e., case > insensitive, but preserving, as MS puts it). This was an ill-advised optimization attempt in glob. I revert the patch and pushed the change(*),

Re: [PATCH] winsup/cygwin/fhandler/proc.cc: format_proc_cpuinfo() Linux 6.8 cpuinfo flags

2024-03-18 Thread Corinna Vinschen
could look like omissions; > fix typos and misalignments; I'm a bit puzzled about the "unused" slots. You're adding them only in some places. What makes them "look like omissions"? Thanks, Corinna

Re: newlib-cygwin build fails on dumper

2024-03-15 Thread Corinna Vinschen
-cygwin main. The getentropy warning has been fixed on 2023-09-25 by commit a9e8e3d1cb82 ("newlib: Add missing prototype for _getentropy") The ATTRIBUTE_WARN_UNUSED_RESULT error message has been fixed on 2024-02-12 by commit 10c8c1cf4f94 ("include/ansidecl.h: import from binutils-gdb") Corinna

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

2024-03-14 Thread Corinna Vinschen via Cygwin-apps
> git remote set-url origin --push > ssh://cyg...@cygwin.com:git/cygwin-packages/sshfs > > which will cause git to automatically use the ssh URL with a simple 'git > push'. You may also want to use https:// rather than git:// for reading the repository these days, given the insecurity of the git protocol. Corinna

Re: [PATCH] Cygwin: pipe: Restore non-blocking mode which was reset for non-cygwin app.

2024-03-12 Thread Corinna Vinschen
ixes: 9e4d308cd592 ("Cygwin: pipe: Adopt FILE_SYNCHRONOUS_IO_NONALERT flag > for read pipe.") > Reported-by: wh > Reviewed-by: Corinna Vinschen > Signed-off-by: Takashi Yano > --- > winsup/cygwin/fhandler/pipe.cc | 63 + > winsup/cy

Re: [PATCH] Cygwin: pipe: Restore non-blocking mode which was reset for non-cygwin app.

2024-03-11 Thread Corinna Vinschen
d. > > Addresses: https://cygwin.com/pipermail/cygwin/2024-March/255644.html > Fixes: 9e4d308cd592 ("Cygwin: pipe: Adopt FILE_SYNCHRONOUS_IO_NONALERT flag > for read pipe.") > Reported-by: wh > Reviewed-by: Corinna Vinschen > Signed-off-by: Takashi Yano

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
f cygwin 3.5.2 is likely to be released soon. We would > be extremely grateful and happy for that. Probably still this month. Corinna -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwin.com/docs.html

Re: ls/stat on OneDrive causes download of files

2024-03-11 Thread Corinna Vinschen via Cygwin
will be in released with 3.5.2 in the next few weeks. Corinna -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple

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: [PATCH] Cygwin: pipe: Restore non-blocking mode which was reset for non-cygwin app.

2024-03-11 Thread Corinna Vinschen
e_non_blocking (is_nonblocking); Is that really right? You're asking pipew_duped for its nonblocking flag and then set pipew_duped to the same value...? > + pipew_duped->close (); > + cfree (pipew_duped); > + } Thanks, Corinna

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
if placeholders are exposed or disguised. What a great API! \o/ So, from the above, and if we really want to be sure that placeholders will be exposed, I don't see any way around calling RtlSetProcessPlaceholderCompatibilityMode(PHCM_EXPOSE_PLACEHOLDERS) explicitely at DLL startup. What do y

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
c#L548 The NtReadFile call at this point is not the problem. It would be helpful to point to Cygwin's source instead of MSYS2, btw. Corinna -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple

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: [PATCH] Cygwin: pipe: Give up to use query_hdl for non-cygwin apps.

2024-03-06 Thread Corinna Vinschen
On Mar 6 03:42, Takashi Yano wrote: > On Tue, 5 Mar 2024 17:54:19 +0100 > Corinna Vinschen wrote: > > On Mar 5 23:47, Takashi Yano wrote: > > > On Tue, 5 Mar 2024 11:14:46 +0100 > > > Corinna Vinschen wrote: > > > > This doesn't affect you

Re: [PATCH] Cygwin: pipe: Give up to use query_hdl for non-cygwin apps.

2024-03-05 Thread Corinna Vinschen
On Mar 5 23:47, Takashi Yano wrote: > On Tue, 5 Mar 2024 11:14:46 +0100 > Corinna Vinschen wrote: > > This doesn't affect your patch, but while looking into this, what > > strikes me as weird is that fhandler_pipe::temporary_query_hdl() calls > > NtQueryObject() and ass

Re: [PATCH v3] Cygwin: pipe: Give up to use query_hdl for non-cygwin apps.

2024-03-05 Thread Corinna Vinschen
; Addresses: https://github.com/msys2/msys2-runtime/issues/202 > > Fixes: b531d6b06eeb ("Cygwin: pipe: Introduce temporary query_hdl.") > Reported-by: Alisa Sireneva, Johannes Schindelin > Reviewed-by: Corinna Vinschen > Signed-off-by: Takashi Yano &

Re: [PATCH] Cygwin: pipe: Give up to use query_hdl for non-cygwin apps.

2024-03-05 Thread Corinna Vinschen
On Mar 5 09:06, Takashi Yano wrote: > On Mon, 4 Mar 2024 18:38:07 +0100 > Corinna Vinschen wrote: > > On Mar 4 16:45, ASSI wrote: > > > Corinna Vinschen writes: > > > > Right you are. We always said that independent Cygwin installations > >

Re: [PATCH] Cygwin: pipe: Give up to use query_hdl for non-cygwin apps.

2024-03-04 Thread Corinna Vinschen
On Mar 4 16:45, ASSI wrote: > Corinna Vinschen writes: > > Right you are. We always said that independent Cygwin installations > > are supposed to *stay* independent. > > > > Keep in mind that they don't share the same shared objects in the native > > NT name

Re: [PATCH] Cygwin: pipe: Give up to use query_hdl for non-cygwin apps.

2024-03-04 Thread Corinna Vinschen
reat it as > same as non-cygwin process. Right you are. We always said that independent Cygwin installations are supposed to *stay* independent. Keep in mind that they don't share the same shared objects in the native NT namespace and they don't know of each other. It's not only the process table but also in-use FIFO stuff, pty info, etc. Corinna

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

2024-03-04 Thread Corinna Vinschen via Cygwin
, it's just some foreign SID. But it's resolvable inside Cygwin: $ getent passwd S-1-0-65534 no+body:*:65534:65534:U-no\body,S-1-0-65534:/:/sbin/nologin $ getent group S-1-0-65534 no+body:S-1-0-65534:65534: Corinna -- Problem reports: https://cygwin.com/problems.html FAQ:

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

Re: [PATCH 2/2] Cygwin: remove ENOSHARE and ECASECLASH from _sys_errlist[]

2024-02-28 Thread Corinna Vinschen
On Feb 27 17:26, Christian Franke wrote: > Hi Corinna, > > Corinna Vinschen wrote: > > On Feb 27 13:18, Christian Franke wrote: > > > ... > > > > > > diff --git a/winsup/cygwin/errno.cc b/winsup/cygwin/errno.cc > > > index 7d58e62ec..

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
group $(ls -gn foo | awk '{print $3}') | awk -F: '{print $4}' Corinna -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple

Re: [PATCH 2/2] Cygwin: remove ENOSHARE and ECASECLASH from _sys_errlist[]

2024-02-27 Thread Corinna Vinschen
*/ > + NULL, /* Was ECASECLASH 137, no longer used. */ In terms of politenness, wouldn't it be better to define them as empty strings? This may be one crash less in already existing binaries... Corinna

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 >

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
s: > [...] > make: *** [Makefile:2: all] Error 127 This is probably what has been fixed for 3.5.1 already in patch aa73e1152426 ("Cygwin: console: Fix exit code for non-cygwin process.") For testing, please install the most recent test release cygwin-3.6.0-0.62.gc2f6c0415501 via the Cygwin

Re: [PATCH 1/4] Cygwin: introduce constexpr errmap_size and errmap[] consistency checks

2024-02-26 Thread Corinna Vinschen
sertions(+), 2 deletions(-) :+1: Patchset pushed. Thanks, Corinna

Re: [PATCH] Cygwin: Map ERROR_NO_SUCH_DEVICE and ERROR_MEDIA_CHANGED to ENODEV

2024-02-26 Thread Corinna Vinschen
On Feb 26 12:14, Christian Franke wrote: > Corinna Vinschen wrote: > > Why so many? I used winerror.h to populate the list not too long ago, > > so I wonder why it suddenly has so many more error codes? > > "Required for mozilla-central." - 850 insertions: > h

Re: [PATCH] Cygwin: Map ERROR_NO_SUCH_DEVICE and ERROR_MEDIA_CHANGED to ENODEV

2024-02-26 Thread Corinna Vinschen
On Feb 25 10:12, Christian Franke wrote: > Corinna Vinschen wrote: > > So the default was EPERM at first and has been changed to EACCES > > because it "is better for the unknown error case". > > > > I'm open to ideas for an improved error mapping. > >

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
: getgrent: fix local SAM enumeration > on domain...commit | commitdiff | tree > 5 days agoCorinna VinschenCygwin: passwd/group: drop Capability > SIDscommit | commitdiff | tree Did changing db_enum in /etc/nsswitch.conf help on your test machine? Corinna -- Problem reports: https:

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
ven trying to populate gr_mem, considering that even in its original form on Unix systems, it's used only to add supplementary groups. To do this right on Windows is even more costly than blindly enumerating. It's not a bug, it's a feature :) Corinna -- Problem reports: https://cygwin.com

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: [PATCH] Cygwin: Map ERROR_NO_SUCH_DEVICE and ERROR_MEDIA_CHANGED to ENODEV

2024-02-24 Thread Corinna Vinschen
r matches ERROR_MEDIA_CHANGED. > > Signed-off-by: Christian Franke > --- > winsup/cygwin/local_includes/errmap.h | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Pushed. Thanks, Corinna

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
sidbuf, SECURITY_MAX_SID_SIZE, ); Corinna -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple

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?

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

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
ould be > winsup/cygwin/times.cc Thanks for the bug report. Fixed in git. The test release cygwin-3.6.0-0.46.g70653fd8f1db containing this patch will be available shortly. Corinna -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Docum

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

2024-02-20 Thread Corinna Vinschen via Cygwin
It was just the way it was. It's probably just as well to move _SYM (_cygheap_start) = .; to the begining of the .cygheap section. Did you try? Corinna -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwin.com/

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

2024-02-20 Thread Corinna Vinschen via Cygwin
p mygrp1" will list it, but this is useless > in my case, as I need the group listed by "getent group" I guess we can rule out a domain controller but is this a standalone machine or a domain member machine? What's the setting of your /etc/nsswitch.conf? Thanks, Corinna -

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 myfile #, which returned > "Permission denied". Works for me: $ chgrp CurrentSession x.c $ ls -l x.c -rw-r--r-- 1 corinna CurrentSession 906 Jan 23 21:40 x.c $ icacls x.c x.c VINSCHEN\corinna:(R,W,D,WDAC,WO) NT AUTHORITY\LogonSessionId_0_2027255:(R) Everyone:(R)

Re: Cygwin sqlite locking debug options still available?

2024-02-19 Thread Corinna Vinschen via Cygwin
-locking-feature > > soehow still available? > > > > We sometimes get sqlite locking errors, and like to investigate what > > and why this fails > > Corinna? Sorry, I'm not the sqlite maintainer. Also, I skimmed the above mail thread and I don't see any mention of a speci

Re: Cygwin installer hangs when running post-install scripts

2024-02-15 Thread Corinna Vinschen via Cygwin
re, but I would feel better if I could debug my code by myself. Thanks, Corinna -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple

Re: Cygwin installer hangs when running post-install scripts

2024-02-15 Thread Corinna Vinschen via Cygwin
ntel Windows 11 machine, where > all works as normal (showing up to the "call" instruction) I wonder if you would be willing to grant us a view into the ntdll!#RtlGetCurrentDirectory_U function jumped to from ntdll!EXP+#RtlGetCurrentDirectory_U. Per your above assembler output, that would be at 7

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
.cc b/winsup/utils/kill.cc > index fb45e4c9d..bcabcd47c 100644 > --- a/winsup/utils/kill.cc > +++ b/winsup/utils/kill.cc > @@ -73,7 +73,7 @@ print_version () > static const char * > strsigno (int signo) > { > - static char sigbuf[8]; > + static char sigbuf[32]; &g

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
ally localized. > How can I get the SID for group "danfsh", or the SID for user "danfsh"? It's the same SID and it's your user SID. There can't be a group with the same name as a user account in the same user DB. Each account in the local domain or in an AD domain h

Re: Cygwin installer hangs when running post-install scripts

2024-02-13 Thread Corinna Vinschen via Cygwin
calls fails and how to fix it. And send a patch eventually. However, there isn't much point there as long as this is an insider build. In the past, the code often changed and was uncritical in the next official release. One thing we can do is to skip the find_fast_cwd_pointer() code entirely when ru

  1   2   3   4   5   6   7   8   9   10   >