Re: Cygwin generates syscalls for *.lnk files on filesystems with native symlink support?

2024-06-07 Thread Roland Mainz via Cygwin
On Mon, Jan 8, 2024 at 2:56 PM Corinna Vinschen via Cygwin wrote: > > On Dec 18 13:04, Cedric Blancher via Cygwin wrote: > > On Fri, 1 Sept 2023 at 13:00, Corinna Vinschen via Cygwin > > wrote: > > > > > > On Sep 1 06:23, Cedric Blancher via Cygwin wrote: > > > > Good morning! > > > > > > > >

Re: new git update fails with fatal: fetch-pack: invalid index-pack output

2024-06-06 Thread Roland Mainz via Cygwin
On Sun, May 26, 2024 at 6:08 AM David Dyck via Cygwin wrote: > I upgraded to the most recent git and I get the following error > ( stable2.45.1-1x86_648597 KiB2024-05-25 18:58 ) > > $ git clone -v https://github.com/lxml/lxml.git > Cloning into 'lxml'... > POST git-upload-pack (175 bytes) > POST

Re: [Ms-nfs41-client-devel] WinSG Re: ANN: NFSv4.1 filesystem client Windows driver binaries for Windows 10/11 for testing, 2024-05-28 ...

2024-06-01 Thread Roland Mainz via Cygwin
On Wed, May 29, 2024 at 4:28 AM Dan Shelton wrote: > > On Tue, 28 May 2024 at 22:15, Cedric Blancher via Cygwin > wrote: > > > > Good evening! > > > > For your consideration - we need FEEDBACK, please! > > > > New is support running it as service (sc start > > ms-nfs41-client-service),

Re: Installing Cygwin as normal user in nonstandard location?

2024-05-27 Thread Roland Mainz via Cygwin
On Sat, May 25, 2024 at 11:53 PM Martin Wege via Cygwin wrote: > Can Cygwin be installed as a normal user (without Admin rights) in a > nonstandard location, like C.\Users\martinwege\cygwinroot36\...)? > > Also, can this be done for more than one Cygwin version, e.g. I'd like > to test multiple

Re: Cygwin setup-x86_64.exe cannot install into UNC paths...

2024-05-27 Thread Roland Mainz via Cygwin
On Mon, May 27, 2024 at 1:11 PM Roland Mainz wrote: > I tried to install Cygwin on a network share using the UNC path name > (e.g. \\derfwnb4966_ipv4@2049\nfs4\storagetek\cygwintest001\), but got > this response: "The install directory must be absolute, with both a > drive letter and leading

Cygwin setup-x86_64.exe cannot install into UNC paths...

2024-05-27 Thread Roland Mainz via Cygwin
Hi! I tried to install Cygwin on a network share using the UNC path name (e.g. \\derfwnb4966_ipv4@2049\nfs4\storagetek\cygwintest001\), but got this response: "The install directory must be absolute, with both a drive letter and leading slash, like C:\Cygwin" ... ... is it possible to

Re: Technical reason why 32bit Cygwin cannot be installed on 64bit Windows?

2024-05-18 Thread Roland Mainz via Cygwin
On Fri, May 17, 2024 at 9:48 AM Cedric Blancher via Cygwin wrote: > Is there a technical reason why 32bit Cygwin cannot be installed on > 64bit Windows? We like to create a CI build pipeline, and want to > create binaries for 32bit and 64bit Cygwin on the same machine, but > setup.exe for 32bir

Re: Wrong value for |FileNormalizedNameInfo| (|24| vs. |48|) in Cygwin 3.6 /usr/include ...

2024-05-15 Thread Roland Mainz via Cygwin
On Sat, May 11, 2024 at 6:17 PM Brian Inglis via Cygwin wrote: > On 2024-05-11 05:30, Roland Mainz via Cygwin wrote: > > I'm writing a test program for |FileNormalizedNameInfo| right now (see > > https://rovema.kpaste.net/07074abc). > > Per > > https://learn.microsoft.

Wrong value for |FileNormalizedNameInfo| (|24| vs. |48|) in Cygwin 3.6 /usr/include ...

2024-05-11 Thread Roland Mainz via Cygwin
Hi! I'm writing a test program for |FileNormalizedNameInfo| right now (see https://rovema.kpaste.net/07074abc). Per https://learn.microsoft.com/en-us/windows/win32/api/minwinbase/ne-minwinbase-file_info_by_handle_class |FileNormalizedNameInfo| should be |24|, but on Cygwin 3.6 I get the

Re: |FILE_ID_BOTH_DIR_INFORMATION| fields |ShortName|+|ShortNameLength| mandatory for Cygwin and Window 10 ?

2024-05-02 Thread Roland Mainz via Cygwin
On Sat, Apr 27, 2024 at 5:03 PM Brian Inglis via Cygwin wrote: > > On 2024-04-27 07:08, Roland Mainz via Cygwin wrote: > > Are the |FILE_ID_BOTH_DIR_INFORMATION| fields > > |ShortName|+|ShortNameLength| mandatory these days, e.g. is it legal > > to set |ShortNameLength

|FILE_ID_BOTH_DIR_INFORMATION| fields |ShortName|+|ShortNameLength| mandatory for Cygwin and Window 10 ?

2024-04-27 Thread Roland Mainz via Cygwin
Hi! Are the |FILE_ID_BOTH_DIR_INFORMATION| fields |ShortName|+|ShortNameLength| mandatory these days, e.g. is it legal to set |ShortNameLength = 0;| for Cygwin 3.4/3.5 in Windows 10 ? Is there anything else for a filesystem driver to do to indicate that |ShortName| support is not available

User impersonation in filesystem mini-redirector daemon works with cmd.exe but not Cygwin mintty.exe ?

2024-04-24 Thread Roland Mainz via Cygwin
Hi! I'm working right now on a filesystem min-redirector with CYGWIN_NT-10.0-19045 3.6.0-0.115.g579064bf4d40.x86_64 and noticed a malfunction. The mini-rdr userland daemon is running as user "SYSTEM"; "SeImpersonatePrivilege" and "SeDelegateSessionUserImpersonatePrivilege" are enabled, so

Fwd: Updating cygwin "libnfs" package ?

2024-03-22 Thread Roland Mainz via Cygwin-apps
Ken Brown Date: Fri, Mar 22, 2024 at 4:36 PM Subject: Re: Updating cygwin "libnfs" package ? To: Roland Mainz , On 3/22/2024 9:49 AM, Roland Mainz via Cygwin wrote: > Hi! > > > > Is it possible to update the Cygwin "libnfs" package, please ? > > The

Updating cygwin "libnfs" package ?

2024-03-22 Thread Roland Mainz via Cygwin
Hi! Is it possible to update the Cygwin "libnfs" package, please ? The current Cygwin "libnfs" version is rather old (per https://cygwin.com/cgit/cygwin-packages/libnfs/log/ last updated in 2016-11-16) and has a couple of NFSv4-related bugs, for example: snip $ nfs-ls.exe

Re: Cygwin 3.5.1: unable to open output file '/cygdrive/t/tmpdir/x-01564d.o': 'Operation not permitted'

2024-03-11 Thread Roland Mainz via Cygwin
On Mon, Mar 11, 2024 at 8:01 AM Cedric Blancher via Cygwin wrote: > On Fri, 8 Mar 2024 at 03:25, Dan Shelton via Cygwin wrote: > > I've run into a problem with clang on Cygwin 3.5.1 and 3.6. My machine > > does not have much disk space left, so I switched TMPDIR to the > > network drive. But

Re: Native posix_spawn() in Cygwin?

2024-03-06 Thread Roland Mainz via Cygwin
On Wed, Mar 6, 2024 at 1:08 AM Mark Geisert via Cygwin wrote: > 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

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-25 Thread Roland Mainz via Cygwin
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: > > > On Feb 22 18:38, Roland Mainz via Cygwin wrote: > > > &g

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(), ..

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

2024-02-23 Thread Roland Mainz via Cygwin
On Fri, Feb 23, 2024 at 4:47 PM Corinna Vinschen via Cygwin wrote: > 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: > > > >

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

2024-02-23 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(), ..

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

2024-02-22 Thread Roland Mainz via Cygwin
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 |TokenInformationClass| should I use) ? Bye, Roland Mainz -- __ .

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

2024-02-18 Thread Roland Mainz via Cygwin
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 "Permission denied". OK, /usr/bin/id -a shows that the current user is a

/usr/bin/fallocate missing in Cygwin 3.5's "util-linux" ...

2024-01-23 Thread Roland Mainz via Cygwin
Hi! - Small bug report: Cygwin 3.5. now has support for SEEK_HOLE (thanks! :-) ), but /usr/bin/fallocate is still missing in the "util-linux" package. Can someone please enable that tool ? Bye, Roland -- __ . . __ (o.\ \/ /.o) roland.ma...@nrubsig.org \__\/\/__/ MPEG

Re: Cygwin tools to read/write NTFS alternate data streams?

2024-01-11 Thread Roland Mainz via Cygwin
On Thu, Jan 11, 2024 at 5:41 PM Corinna Vinschen via Cygwin wrote: > > On Jan 11 15:00, Martin Wege via Cygwin wrote: > > On Mon, Jan 8, 2024 at 3:11 PM Corinna Vinschen via Cygwin > > wrote: > > so this is IMO OK. > > Yeah, but... > > It's not just an open flag, it requires extending

Re: Cygwin tools to read/write NTFS alternate data streams?

2024-01-11 Thread Roland Mainz via Cygwin
On Thu, Jan 11, 2024 at 3:00 PM Martin Wege via Cygwin wrote: > On Mon, Jan 8, 2024 at 3:11 PM Corinna Vinschen via Cygwin > wrote: > > On Dec 18 18:47, Martin Wege via Cygwin wrote: > > > On Fri, Dec 1, 2023 at 10:52 AM Corinna Vinschen via Cygwin > > > wrote: [snip] > > Apart from that, this

Re: rfe: CYGWIN fslinktypes option? Re: Catastrophic Cygwin find . -ls, grep performance on samba share compared to WSL

2023-12-23 Thread Roland Mainz via Cygwin
On Thu, Dec 21, 2023 at 9:32 PM Kaz Kylheku via Cygwin wrote: > On 2023-12-21 04:16, Martin Wege via Cygwin wrote: > > On Wed, Dec 20, 2023 at 6:21 PM Kaz Kylheku via Cygwin > > wrote: [snip] > > The root cause is IMO the extra Win32 syscalls (>= 3 per file lookup, > > compared to 1 on Linux) to

Watch open/read/write/close WIndows syscalls with strace ?

2023-11-02 Thread Roland Mainz via Cygwin
Hi! We're trying to debug mysterious sporadic I/O issues in Windows native git ('/cygdrive/c/Program Files/Git/cmd/git') started from Cygwin 3.5.0 mintty.exe ... ... which raises the question: How can I watch the Windows syscalls for file open/read/write/close with Cygwin strace for a new

Cygwin |chroot()| "bad" - but what should replace it ? / was: Re: process substitution to create a virtual file doesn't work in chroot environment

2023-10-21 Thread Roland Mainz via Cygwin
On Mon, Aug 28, 2023 at 10:50 AM Corinna Vinschen via Cygwin wrote: > On Aug 27 18:13, Cary Lewis via Cygwin wrote: [snip > The chroot implementation is old, bad, and deprecated. I was going > to rip it out entirely for I don't know how often already, but there > was always somebody asking to

Cygwin 3.5.0 KDE kate crashes in |cygdbus-1-3!_dbus_get_local_machine_uuid_encoded ()| ...

2023-10-16 Thread Roland Mainz via Cygwin
Steps to reproduce: 1. Boot Windows 10 2. Log in 3. Open Cygwin terminal 4. Run "kate" Result: kate crashes Expected result: kate runs snip $ uname -a CYGWIN_NT-10.0-19045 DERFWNB8353 3.5.0-0.438.g322c7150b25e.x86_64 2023-09-17 14:19 UTC x86_64 Cygwin $ gdb --args kate GNU gdb (GDB)

Re: How to fix |mkfifo()| failure if |pathname| is on NFS ? / was: Re: [EXTERNAL] Re: mkfifo: cannot set permissions of 'x.fifo': Not a directory

2023-08-25 Thread Roland Mainz via Cygwin
On Fri, Aug 25, 2023 at 2:18 PM Corinna Vinschen via Cygwin wrote: > > On Aug 23 01:05, Roland Mainz via Cygwin wrote: > > Note that Cygwin does not interpret the file |myfifo.fifo| as FIFO, > > instead it comes back as a symlink "myfifo.fifo -> ':\0:c4:1000'". &g

How to fix |mkfifo()| failure if |pathname| is on NFS ? / was: Re: [EXTERNAL] Re: mkfifo: cannot set permissions of 'x.fifo': Not a directory

2023-08-22 Thread Roland Mainz via Cygwin
On Tue, Aug 22, 2023 at 4:52 PM Lavrentiev, Anton (NIH/NLM/NCBI) [C] via Cygwin wrote: > > FIFOs which don't make *any* sense > > ... FWIW, a remote NFS fileystem. > > I got an impression that the OP is trying to deploy something (maybe the > entire Cygwin) onto an > NFS share. So the named

Re: Weird (path) problems with cygwin test release 3.5.0-0.384.g9939aa7d0945.x86_64 ...

2023-08-14 Thread Roland Mainz via Cygwin
On Mon, Aug 14, 2023 at 6:25 PM Roland Mainz wrote: > On Mon, Aug 14, 2023 at 12:21 PM Corinna Vinschen via Cygwin > wrote: > > On Aug 11 13:36, Mainz, Roland via Cygwin wrote: [snip] > > > In our case we have a project with both custom binaries and sources > > > both hosted on the filesystem as

Re: Weird (path) problems with cygwin test release 3.5.0-0.384.g9939aa7d0945.x86_64 ...

2023-08-14 Thread Roland Mainz via Cygwin
On Mon, Aug 14, 2023 at 12:21 PM Corinna Vinschen via Cygwin wrote: > > On Aug 11 13:36, Mainz, Roland via Cygwin wrote: > > Hi! > > > > > > > > Cygwin test release 3.5.0-0.384.g9939aa7d0945.x86_64 has some weird > > path problems with network filesystems on Windows 10. Previous stable > >

Re: Entering Cygwin command line (bash login) from Windows cmd.exe ?

2023-08-12 Thread Roland Mainz via Cygwin
On Mon, Aug 7, 2023 at 7:38 AM KAVALAGIOS Panagiotis (EEAS) via Cygwin wrote: > > > On Sat, Jul 29, 2023 at 6:18 AM Roland Mainz > > wrote: > > > Is there an official way to enter the Cygwin command line (e.g. bash > > > login) from Windows cmd.exe, e.g. if someone ssh's into a Windows > > >

Re: Cygwin breaks net use Z: /delete in scripts?

2023-08-12 Thread Roland Mainz via Cygwin
On Fri, Aug 11, 2023 at 10:55 AM Corinna Vinschen via Cygwin wrote: [snip] > On Aug 11 10:25, Martin Wege wrote: > > Cygwin somehow breaks unmounting of network shares, but ONLY if the > > net use /delete happens in a bash shell script. > > > > Example: > > Mount SMB network share on Z: > > Do

Re: Entering Cygwin command line (bash login) from Windows cmd.exe ?

2023-08-06 Thread Roland Mainz via Cygwin
On Sat, Jul 29, 2023 at 6:18 AM Roland Mainz wrote: > Is there an official way to enter the Cygwin command line (e.g. bash > login) from Windows cmd.exe, e.g. if someone ssh's into a Windows > machine he/she ends/up in a cmd.exe and not bash... ping! Bye, Roland -- __ . . __ (o.\ \/

Automounter in Cygwin to mount NFS home dir on demand ?

2023-07-28 Thread Roland Mainz via Cygwin
Hi! Does Cygwin have something like a Solaris/Linux autofs-style automounter ? The idea is to mount NFS home dirs automagically the first time someone uses them, e.g. $ cd /home/chickenmonster/ # automagically mounts NFS dir mymonsternfs:/export/home/chickenmonster/ Bye, Roland --

Map home dir drive (H:) to /home/myuser/ ?

2023-07-28 Thread Roland Mainz via Cygwin
Good morning! Does Cygwin have a way to map a (NFS) home dir drive (H:) to /home/myuser/, without resorting to POSIX-style softlinks ([1]) ? Example: 1. Home dir mounted on drive H: via NFS 2. How do I now map H: to /home/myuser/ ? For example Linux and Solaris use the automounter to

Entering Cygwin command line (bash login) from Windows cmd.exe ?

2023-07-28 Thread Roland Mainz via Cygwin
Hi! Is there an official way to enter the Cygwin command line (e.g. bash login) from Windows cmd.exe, e.g. if someone ssh's into a Windows machine he/she ends/up in a cmd.exe and not bash... Bye, Roland -- __ . . __ (o.\ \/ /.o) roland.ma...@nrubsig.org \__\/\/__/ MPEG