cygwin.cygwin.narkive.com

2023-08-07 Thread Harry Cox via Cygwin
Hi , My company works with various businesses to enhance their website to boost its speed and overall conversions. Would you be open to receiving some more info and a quote? Best regards, Harry Cox | CEO PrimeVision LLC - We Deliver Value Headquarters: 111A 15th St New York, NY, 10003 If you

Re: sshd_config AllowStreamLocalForwarding *remote not possible* / effectively privsep off

2023-08-07 Thread Shaddy Baddah via Cygwin
Hi, I've just updated the subject line for accuracy. Only remote/reverse unix socket forwarding fails. Further, I have a clarification that might have significance: On 8/08/2023 3:40 am, Corinna Vinschen via Cygwin wrote: > On Aug 7 22:11, Shaddy Baddah via Cygwin wrote: .. > >>

Re: sshd_config AllowStreamLocalForwarding perm off / effectively privsep off

2023-08-07 Thread Shaddy Baddah via Cygwin
Hi, On 8/08/2023 3:40 am, Corinna Vinschen via Cygwin wrote: On Aug 7 22:11, Shaddy Baddah via Cygwin wrote: .. Yes, the parts of OpenSSH requiring descriptor passing are disabled in OpenSSH. Otherwise, what's the solution? Solution for what? What is it you want to do? Reverse unix

Re: Find free drive letter in Cygwin?

2023-08-07 Thread Martin Wege via Cygwin
On Mon, Aug 7, 2023 at 8:43 PM Brian Inglis wrote: > > On 2023-08-07 10:52, Martin Wege via Cygwin wrote: > > What is the official cygwin way to find a free drive letter, which can > > be used in a script to mount a drive? > > Just use the Windows UNC network path directly on Cygwin with '/' not

Re: mkfifo: cannot set permissions of 'x.fifo': Not a directory

2023-08-07 Thread Martin Wege via Cygwin
On Mon, Aug 7, 2023 at 9:14 PM Corinna Vinschen wrote: > > On Aug 7 12:26, Brian Inglis via Cygwin wrote: > > On 2023-08-07 08:42, Martin Wege via Cygwin wrote: > > > We get a weird mkfifo failure in Cygwin on NTFS: > > > > > > /usr/bin/mkfifo -m 600 x.fifo > > > mkfifo: cannot set permissions

Re: [PATCH rebase 2/2] peflags: Add -k, --checksum option

2023-08-07 Thread Corinna Vinschen via Cygwin-apps
On Aug 7 16:26, Christian Franke via Cygwin-apps wrote: > This patch is on top of the --timestamp patch. Could not be applied to > current HEAD without conflicts. > > -- > Regards, > Christian > > From 9ecaf86bff5d229bf5b2a1ba1ff4674526fc1b68 Mon Sep 17 00:00:00 2001 > From: Christian Franke

Re: [PATCH rebase 1/2] peflags: Add -p, --timestamp option

2023-08-07 Thread Corinna Vinschen via Cygwin-apps
On Aug 7 16:16, Christian Franke via Cygwin-apps wrote: > Running 'peflags -p /bin/*.exe' with the patch applied suggests that > objcopy/strip recently changed behavior and no longer set timestamps to 0. > > Related: https://sourceware.org/bugzilla/show_bug.cgi?id=30702 > > -- > Regards, >

Re: mkfifo: cannot set permissions of 'x.fifo': Not a directory

2023-08-07 Thread Corinna Vinschen via Cygwin
On Aug 7 12:26, Brian Inglis via Cygwin wrote: > On 2023-08-07 08:42, Martin Wege via Cygwin wrote: > > We get a weird mkfifo failure in Cygwin on NTFS: > > > > /usr/bin/mkfifo -m 600 x.fifo > > mkfifo: cannot set permissions of 'x.fifo': Not a directory > > This error is also reproducible with

Re: [PATCH rebase] peflags: Fix ULONG range checks

2023-08-07 Thread Corinna Vinschen via Cygwin-apps
Hi Christian, On Aug 7 16:07, Christian Franke via Cygwin-apps wrote: > Minor issue found during tests of the upcoming 'peflags --timestamp' patch. > > -- > Regards, > Christian > > From 9da405da78e92dc8263239e25365bee3167f185e Mon Sep 17 00:00:00 2001 > From: Christian Franke > Date: Mon,

Re: Find free drive letter in Cygwin?

2023-08-07 Thread Brian Inglis via Cygwin
On 2023-08-07 10:52, Martin Wege via Cygwin wrote: What is the official cygwin way to find a free drive letter, which can be used in a script to mount a drive? Just use the Windows UNC network path directly on Cygwin with '/' not '\'. For Windows, it may still be NET USE * \\... but have not

Re: mkfifo: cannot set permissions of 'x.fifo': Not a directory

2023-08-07 Thread Brian Inglis via Cygwin
On 2023-08-07 08:42, Martin Wege via Cygwin wrote: We get a weird mkfifo failure in Cygwin on NTFS: /usr/bin/mkfifo -m 600 x.fifo mkfifo: cannot set permissions of 'x.fifo': Not a directory This error is also reproducible with default fifo permissions 666 or anything else, and appears to be

Re: sshd_config AllowStreamLocalForwarding perm off / effectively privsep off

2023-08-07 Thread Corinna Vinschen via Cygwin
On Aug 7 22:11, Shaddy Baddah via Cygwin wrote: > Hi, > > For the current OpenSSH server (9.3p2), AllowStreamLocalForwarding > defaults on. That means both local and remote unix socket port > portforwarding are possible. > > For Cygwin, it appears the remote form of this is not possible. The >

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

2023-08-07 Thread Lee via Cygwin
On 8/7/23, Roland Mainz 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 >> machine he/she ends/up in a cmd.exe and not bash... > >

Re: [PATCH cygport] lib/src_prep.cygpart: Fix incorrect options passed to unzstd in unpack()

2023-08-07 Thread ASSI via Cygwin-apps
Jon Turney via Cygwin-apps writes: > Yes, I had managed to deduce that much. :) > > Providing a specific instance would save me having to find or invent > one, though. Sorry, I did not have one at hand, all such instances in my stack of packages are either uncompressed files or compressed

Re: [PATCH cygport] lib/src_prep.cygpart: Fix incorrect options passed to unzstd in unpack()

2023-08-07 Thread Jon Turney via Cygwin-apps
On 04/08/2023 18:51, ASSI via Cygwin-apps wrote: Jon Turney via Cygwin-apps writes: Do you have an example of a cygport which fails without this fix, so I can add a test for this? Anything with a SRC_URI or PATCH_URI that has .zst suffix but not .tar.zst should suffice. Yes, I had managed

Re: [PATCH cygport] lib/src_prep.cygpart: Fix incorrect options passed to unzstd in unpack()

2023-08-07 Thread Jon Turney via Cygwin-apps
On 04/08/2023 19:39, Yasutaka ATARASHI via Cygwin-apps wrote: ASSI via Cygwin-apps writes: That's true for bunzip2 and gunzip, but not for zstd (where the output file can be independently specified). Ah ha. The attached patch recovers to use the `-o` option for `unzstd`. Thanks. I applied

Find free drive letter in Cygwin?

2023-08-07 Thread Martin Wege via Cygwin
Hello, What is the official cygwin way to find a free drive letter, which can be used in a script to mount a drive? Thanks, Martin -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:https://cygwin.com/docs.html

mkfifo: cannot set permissions of 'x.fifo': Not a directory

2023-08-07 Thread Martin Wege via Cygwin
Hello, We get a weird mkfifo failure in Cygwin on NTFS: /usr/bin/mkfifo -m 600 x.fifo mkfifo: cannot set permissions of 'x.fifo': Not a directory Is there a known workaround? So far named fifos cannot be created somehow. Thanks, Martin -- Problem reports:

[PATCH rebase 2/2] peflags: Add -k, --checksum option

2023-08-07 Thread Christian Franke via Cygwin-apps
This patch is on top of the --timestamp patch. Could not be applied to current HEAD without conflicts. -- Regards, Christian From 9ecaf86bff5d229bf5b2a1ba1ff4674526fc1b68 Mon Sep 17 00:00:00 2001 From: Christian Franke Date: Mon, 7 Aug 2023 15:52:14 +0200 Subject: [PATCH] peflags: Add -k,

[PATCH rebase 1/2] peflags: Add -p, --timestamp option

2023-08-07 Thread Christian Franke via Cygwin-apps
Running 'peflags -p /bin/*.exe' with the patch applied suggests that objcopy/strip recently changed behavior and no longer set timestamps to 0. Related: https://sourceware.org/bugzilla/show_bug.cgi?id=30702 -- Regards, Christian From 68d42574e4b7bbc0659708ce801b6cd25b88dc11 Mon Sep 17

[PATCH rebase] peflags: Fix ULONG range checks

2023-08-07 Thread Christian Franke via Cygwin-apps
Minor issue found during tests of the upcoming 'peflags --timestamp' patch. -- Regards, Christian From 9da405da78e92dc8263239e25365bee3167f185e Mon Sep 17 00:00:00 2001 From: Christian Franke Date: Mon, 7 Aug 2023 13:42:50 +0200 Subject: [PATCH] peflags: Fix ULONG range checks Don't use

sshd_config AllowStreamLocalForwarding perm off / effectively privsep off

2023-08-07 Thread Shaddy Baddah via Cygwin
Hi, For the current OpenSSH server (9.3p2), AllowStreamLocalForwarding defaults on. That means both local and remote unix socket port portforwarding are possible. For Cygwin, it appears the remote form of this is not possible. The following message is seen on the client-side, regardless of

Re: Kernel stack trace for Winows 10 blue screen when running Cygwin?

2023-08-07 Thread Corinna Vinschen via Cygwin
On Aug 7 12:43, Cedric Blancher via Cygwin wrote: > On Mon, 7 Aug 2023 at 11:55, Corinna Vinschen > wrote: > > > > On Aug 7 11:29, Cedric Blancher via Cygwin wrote: > > > Forwarding to cygwin@cygwin.com > > > > > > Honestly I find it deeply concerning that a plain, unprivileged user > > > can

Re: [PATCH 1/2] Detect RAM disks as a separate filesystem type

2023-08-07 Thread Corinna Vinschen
Hi Les, your 2nd patch looks good to me, but this patch is a bit questionable. On Aug 7 03:13, Les De Ridder wrote: > diff --git a/winsup/cygwin/mount.cc b/winsup/cygwin/mount.cc > index 36ab042a7..1950dadb0 100644 > --- a/winsup/cygwin/mount.cc > +++ b/winsup/cygwin/mount.cc > @@ -292,6

Re: Kernel stack trace for Winows 10 blue screen when running Cygwin?

2023-08-07 Thread Cedric Blancher via Cygwin
On Mon, 7 Aug 2023 at 11:55, Corinna Vinschen wrote: > > On Aug 7 11:29, Cedric Blancher via Cygwin wrote: > > Forwarding to cygwin@cygwin.com > > > > Honestly I find it deeply concerning that a plain, unprivileged user > > can Bluescreen a machine, and more so that it happens during normal > >

[PATCH 2/2] Use init_reopen_attr in mmap

2023-08-07 Thread Les De Ridder
Calling mmap on a file stored on a volume with buggy file re-opening currently bugchecks. This commit solves this by using the init_reopen_attr helper function. Signed-off-by: Les De Ridder --- winsup/cygwin/mm/mmap.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git

[PATCH 0/2] Fix RAM disk crash

2023-08-07 Thread Les De Ridder
Some executables cause a bugcheck when running Cygwin off a native RAM disk, which AFAICT is caused by a buggy (Microsoft) driver. This issue will most likely only occur on WinPE and similar environments (tested on 10.0.20348.1). See for some

[PATCH 1/2] Detect RAM disks as a separate filesystem type

2023-08-07 Thread Les De Ridder
Native RAM disks, e.g. as are used in WinPE environments, have other characteristics than regular filesystems such as NTFS. For instance, re-opening files with NtOpenFile is buggy. This commit checks whether a volume is a RAM disk through the NT object the drive letter link refers to. This seems

Re: Kernel stack trace for Winows 10 blue screen when running Cygwin?

2023-08-07 Thread Corinna Vinschen via Cygwin
On Aug 7 11:29, Cedric Blancher via Cygwin wrote: > Forwarding to cygwin@cygwin.com > > Honestly I find it deeply concerning that a plain, unprivileged user > can Bluescreen a machine, and more so that it happens during normal > Cygwin usage. Same here. Cygwin is userspace only! If any call

Fwd: Kernel stack trace for Winows 10 blue screen when running Cygwin?

2023-08-07 Thread Cedric Blancher via Cygwin
Forwarding to cygwin@cygwin.com Honestly I find it deeply concerning that a plain, unprivileged user can Bluescreen a machine, and more so that it happens during normal Cygwin usage. Ced -- Forwarded message - From: Cedric Blancher Date: Sun, 6 Aug 2023 at 23:56 Subject: Kernel

Re: [PATCH 0/4] Testsuite update

2023-08-07 Thread Corinna Vinschen
On Aug 4 13:47, Jon Turney wrote: > This gets us down to no permanent failures in the testsuite in CI. > > When run locally, msgtest, semtest and shmtest fail because they need a > running cygserver using the test DLL, > and I haven't got a good idea about how to automate that. devdsp fails