Re: sshd

2022-02-13 Thread Ernie Rael
On 2/13/22 10:56 PM, Andrey Repin wrote: Greetings, Ernie Rael! ... Open Windows Firewall (cygstart WF.msc), find all your sshd rules and trash them. Manually create (or tweak Windows sshd one) a single rule for port rather than executable. Additionally, to resolve conflicts with stock sshd,

Re: sshd

2022-02-13 Thread Andrey Repin
Greetings, Ernie Rael! > On 2/12/22 9:29 PM, Mark Geisert wrote: >> Ernie Rael wrote: >>> Hi all, >>> >>> I set up cygwin several years ago and have only had one system at >>> home. I've recently got a 2nd, linux. >>> >>> I've used ssh locally under cygwin, primarily to get a term for a use >>>

expat update would be good

2022-02-13 Thread Brian Inglis
[posting to apps to be less public] https://nvd.nist.gov/vuln/detail/CVE-2022-23990 expat < 2.4.4 -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada This email may be disturbing to some readers as it contains too much technical detail. Reader discretion is advised. [Data in binary

vim update would be good

2022-02-13 Thread Brian Inglis
[posting to apps to be less public] https://nvd.nist.gov/vuln/detail/CVE-2022-0368 vim < 8.2.4217 -- Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada This email may be disturbing to some readers as it contains too much technical detail. Reader discretion is advised. [Data in binary

Re: sshd

2022-02-13 Thread Erik Soderquist
On Sun, Feb 13, 2022 at 7:38 AM Ernie Rael wrote: > Doesn't seem to be a firewall issue. NetStat took about 90 seconds. > > $ ps -lp 255 >PIDPPIDPGID WINPID TTY UIDSTIME COMMAND >255 254 255 4176 ? 1006 Feb 1 > /usr/sbin/sshd >

Re: [:xdigit:] does not work with std::wstring in a Cygwin environment

2022-02-13 Thread Achim Gratz
Gans, Markus writes: > This seems to be an internal Cygwin error: > > https://www.reddit.com/r/cpp_questions/comments/sp52gq/xdigit_does_not_work_with_stdwstring_in_a_cygwin/ […] > Question: Why does Cygwin not detect the letters a, b, c, d, e, and f as > hexadecimal digits in a wide string? I

[PATCH setup] Handle tar type flag 'K' (GNU long link extension)

2022-02-13 Thread Jon Turney
Handle tar type flag'K' (GNU long link extension) Also report unexpected filename in headers with long name extension type Also clean up some cruft in archive_tar.cc Currently, the only existing package which contains type flag 'K' entries is f21-backgrounds-extras. This also now correctly

Cygwin-X AWT windows snap back after drag in multi-window mode (w/example): long-standing issue

2022-02-13 Thread John Harris
For well over ten years, I (and other developers with the same configuration) have been experiencing this issue with Cygwin-X in multi-window mode with Java AWT apps. The issue is simply that the first time (and only the first time) certain AWT dialogs are dragged to move them, they snap back to

[PATCH 8/8] Cygwin: console: Set console mode even if stdin/stdout is redirected.

2022-02-13 Thread Takashi Yano
- When non-cygwin app is started in console, console mode is set to tty::native. However, if stdin is redirected, current code does not set the input mode of the console. In this case, if the app opens "CONIN$", the console mode will not be appropriate for non-cygwin app. This patch fixes

[PATCH 5/8] Cygwin: pty: Discard input in from_master_nat pipe on signal as well.

2022-02-13 Thread Takashi Yano
- Currently, pty discards input only in from_master pipe on signal. Due to this, if pty is started without pseudo console support and start a non-cygwin process from cmd.exe, type adhead input is not discarded on signals such as Ctrl-C. This patch fixes the issue. ---

[PATCH 2/8] Cygwin: pty: Pass Ctrl-Z (EOF) to non-cygwin apps with disable_pcon.

2022-02-13 Thread Takashi Yano
- Previously, non-cygwin app running in pty started without pseudo console support was suspended by Ctrl-Z rather than sending EOF. Even worse, suspended app could not be resumed by fg command. With this patch, Ctrl-Z (EOF for non-cygwin apps) is passed to non-cygwin app instead of

[PATCH 7/8] Cygwin: console: Fix console mode for non-cygwin inferior of GDB.

2022-02-13 Thread Takashi Yano
- Currently, there is no chance to change console mode for non-cygwin inferior of GDB. With this patch, the console mode is changed to tty::native in CreateProcess() and ContinueDebugEvent() hooked in fhandler_console. --- winsup/cygwin/fhandler.h | 2 +

[PATCH 1/8] Cygwin: pty, console: Fix Ctrl-C handling for non-cygwin apps.

2022-02-13 Thread Takashi Yano
- Currently, if cat is started from cmd.exe which is started in cygwin console, Ctrl-C terminates not only cat but also cmd.exe. This also happens in pty in which pseudo console is disabled. This patch fixes the issue. --- winsup/cygwin/fhandler_console.cc | 28 +++

[PATCH 4/8] Cygwin: pty: Revise the code to wait for completion of forwarding.

2022-02-13 Thread Takashi Yano
- With this patch, the code to wait for completion of forwarding of output from non-cygwin app is revised so that it can more reliably detect the completion. --- winsup/cygwin/fhandler_tty.cc | 5 - winsup/cygwin/tty.cc | 11 ++- winsup/cygwin/tty.h | 3 ++- 3

[PATCH 3/8] Cygwin: pty: Prevent deadlock on echo output.

2022-02-13 Thread Takashi Yano
- If the slave process writes a lot of text output, doecho() can cause deadlock. This is because output_mutex is held in slave:: write() and if WriteFile() is blocked due to pipe full, doecho() tries to acquire output_mutex and gets into deadlock. With this patch, the deadlock is prevented

[PATCH 6/8] Cygwin: pty: Fix a bug in tty_min::segpgid().

2022-02-13 Thread Takashi Yano
- In tty_min::setpgid(), a pointer to fhandler instance is casted to fhandler_pty_slave and accessed even if terminal is not a pty slave. This patch fixes the issue. --- winsup/cygwin/tty.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/tty.cc

[PATCH 0/8] Several modifications for pty and console code.

2022-02-13 Thread Takashi Yano
Takashi Yano (8): Cygwin: pty, console: Fix Ctrl-C handling for non-cygwin apps. Cygwin: pty: Pass Ctrl-Z (EOF) to non-cygwin apps with disable_pcon. Cygwin: pty: Prevent deadlock on echo output. Cygwin: pty: Revise the code to wait for completion of forwarding. Cygwin: pty: Discard

Re: sshd

2022-02-13 Thread Ernie Rael
Thanks Russell, cygrunsrv's running $ cygrunsrv --list sshd $ cygrunsrv --query sshd Service : sshd Display name    : CYGWIN sshd Current State   : Running Controls Accepted   : Stop Command : /usr/sbin/sshd -D -ernie On 2/12/22 10:30 PM, Russell VT wrote:

Re: sshd

2022-02-13 Thread Ernie Rael
On 2/12/22 9:29 PM, Mark Geisert wrote: Ernie Rael wrote: Hi all, I set up cygwin several years ago and have only had one system at home. I've recently got a 2nd, linux. I've used ssh locally under cygwin, primarily to get a term for a use with admin priv. And I can ssh from cygwin to the

gcc and -flto

2022-02-13 Thread Marco Atzeri
Hi Achim, Jonathan, noted on latest guile 3.0.8 this problem Cygwin runtime failure: /pub/devel/guile/guile30/guile3.0-3.0.8-1.x86_64/build/libguile/.libs/guile.exe: Invalid relocation. Offset 0x45a4eb486 at address 0x100401086 doesn't fit into 32 bits goes away removing the `-flto` from