3.3.5, rsync+ssh hangs on Windows 11

2022-08-31 Thread Kevin Mack
This worked on Windows 10 but hangs on Windows 11:

rsync -a  :

After I terminated the background "ssh" process in Task Manager, this is the 
output:

rsync: [sender] safe_read failed to read 4 bytes: No child processes (10)
rsync error: error in rsync protocol data stream (code 12) at io.c(276) 
[sender=3.2.4dev]

The Windows OS build is 22000.918.

Kevin


cygcheck.out
Description: Binary data

-- 
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: Running cygwin from python

2022-08-31 Thread Eliot Moss

On 8/31/2022 4:40 PM, René Berber wrote:

On 8/31/2022 1:39 PM, Eliot Moss wrote:


On 8/31/2022 1:41 PM, Toyoshima Denis wrote:

Hi there, how are you?

I’d like to know if there’s any possibility of running simple commands inside Cygwin through 
Python code.

-


If yes, could you provide some examples?


This will happen automatically if you use Cygwin's python.
If you don't, then you have to run a program (for example, ls)
by giving the path to the executable - on my system that is:

C:\cygwin64\bin\ls.exe

[snip]

I think he meant something like this:

$ python
Python 3.9.10 (main, Jan 20 2022, 21:37:52)
[GCC 11.2.0] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
 >>> import os
 >>> os.system("ls")
... output is a list of strings with the contents of current directory
^D

Which is not a question for the Cygwin list, its elementary python.


... except if the OP is talking ab *Windows* python, in which case the
os package will run Windows things, not cygwin ones ...

Best - Eliot

--
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: Running cygwin from python

2022-08-31 Thread René Berber

On 8/31/2022 1:39 PM, Eliot Moss wrote:


On 8/31/2022 1:41 PM, Toyoshima Denis wrote:

Hi there, how are you?

I’d like to know if there’s any possibility of running simple commands 
inside Cygwin through Python code.

-


If yes, could you provide some examples?


This will happen automatically if you use Cygwin's python.
If you don't, then you have to run a program (for example, ls)
by giving the path to the executable - on my system that is:

C:\cygwin64\bin\ls.exe

[snip]

I think he meant something like this:

$ python
Python 3.9.10 (main, Jan 20 2022, 21:37:52)
[GCC 11.2.0] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.system("ls")
... output is a list of strings with the contents of current directory
^D

Which is not a question for the Cygwin list, its elementary python.
--


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


Unexpected permissions for home dir install

2022-08-31 Thread carbonfiber123irc carbonfiber123irc
I did read that upon installation.

But I read it more as:
"Cygwin is still available to multiple users, depending
on where you install it".

I did not expect it to apply when installing Cygwin into a
private home directory.

And maybe other people read it similar to how I read it.

But its also entirely possible that its just me, and that
I should be more careful about my assumptions the next time
I install something.

-- 
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: Unexpected permissions for home dir install

2022-08-31 Thread Ken Brown

On 8/31/2022 2:42 PM, carbonfiber123irc carbonfiber123irc wrote:

Hello

I have experienced the following unexpected default
behavior when installing cygwin inside my home directory.

Using the --no-admin option and choosing "just me" in the setup.

As user1 when installing cygwin to:
"C:\Users\user1\Downloads\cygwin_test1\"

Then all the directories and files have the read and execute
permissions for the "Everyone" SID.

This means a user2 on the same system can read files inside
"C:\Users\user1\Downloads\cygwin_test1\home\user1\"

It also means that user2 can use stuff in the cygwin install
such as bash, even though I did not intend for that to be available
to user2.

The above applies both to the newest cygwin setup from the cygwin
website as of this writing, and also to the 2.921 setup.

I have worked around the issue myself by setting the permissions
manually after the install. So I am just writing this to inform
you that I found the behavior unexpected, and then you can determine
if you consider it a bug or not.


Setup displays the following text below the "Just Me" button:

  Cygwin will still be available to all users, but Desktop Icons,
  Cygwin Menu Entries, and important Installer information are
  only available to the current user.  Only select this if you
  lack Administrator privileges or if you have specific needs.

This is consistent with what you observed.

Ken

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


Unexpected permissions for home dir install

2022-08-31 Thread carbonfiber123irc carbonfiber123irc
Hello

I have experienced the following unexpected default
behavior when installing cygwin inside my home directory.

Using the --no-admin option and choosing "just me" in the setup.

As user1 when installing cygwin to:
"C:\Users\user1\Downloads\cygwin_test1\"

Then all the directories and files have the read and execute
permissions for the "Everyone" SID.

This means a user2 on the same system can read files inside
"C:\Users\user1\Downloads\cygwin_test1\home\user1\"

It also means that user2 can use stuff in the cygwin install
such as bash, even though I did not intend for that to be available
to user2.

The above applies both to the newest cygwin setup from the cygwin
website as of this writing, and also to the 2.921 setup.

I have worked around the issue myself by setting the permissions
manually after the install. So I am just writing this to inform
you that I found the behavior unexpected, and then you can determine
if you consider it a bug or not.

-- 
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: Running cygwin from python

2022-08-31 Thread Eliot Moss

On 8/31/2022 1:41 PM, Toyoshima Denis wrote:

Hi there, how are you?

I’d like to know if there’s any possibility of running simple commands inside 
Cygwin through Python code.
If yes, could you provide some examples?


This will happen automatically if you use Cygwin's python.
If you don't, then you have to run a program (for example, ls)
by giving the path to the executable - on my system that is:

C:\cygwin64\bin\ls.exe

Any argument will need to be in a form that the Cygwin program
expects.  For example. to ls my Cygwin home directory, I could
do:

C:\cygwin64\bin\ls.exe /home/moss

I could also do:

C:\cygwin64\bin\ls.exe /cygdrive/c/cygwin64/home/moss


You could also go through two steps, using the cygpath program to
convert paths to the desired form for a Cygwin program to obtain
a Cygwin form name to pass to a Cygwin program.

HTH - Eliot Moss

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


Running cygwin from python

2022-08-31 Thread Toyoshima Denis
Hi there, how are you?

I’d like to know if there’s any possibility of running simple commands inside 
Cygwin through Python code.
If yes, could you provide some examples?

Thanks in advance!

BR,

Denis

This email message (including its attachments) is confidential and may contain 
privileged information and is intended solely for the use of the individual 
and/or entity to whom it is addressed. If you are not the intended recipient of 
this e-mail you may not disseminate, distribute or copy this e-mail (including 
its attachments), or any part thereof. If this e-mail is received in error, 
please notify the sender immediately by return e-mail and make sure that this 
e-mail (including its attachments), and all copies thereof, are immediately 
deleted from your system. Please further note that when you communicate with us 
via email or visit our website we process your personal data. See our privacy 
policy for more information about how we process it: 
https://www.volvogroup.com/en-en/privacy.html

-- 
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: FAST_CWD pointer

2022-08-31 Thread cygwinautoreply
>Cygwin,

>I have a customer of ours that uses cygwin and they started getting this
>error. We have not seen this before. Is there anything we can do to fix
>this?

>5[main] mv 520 find_fast_cwd: WARNING: Couldn't compute FAST_CWD pointer:
>Please report this problem to the public mailing list cygwin@cygwin.com

>Thank you,
>*Reese Borchers*
>Manufacturing Services Support, *Optimation*
>700 NE RD Mize Rd. Suite 101, Blue Springs, MO, 64014
>*(816)509-9974 rborch...@optimaiton.com *


https://cygwin.com/faq.html#faq.using.fixing-find_fast_cwd-warnings

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


FAST_CWD pointer

2022-08-31 Thread Reese Borchers
Cygwin,

I have a customer of ours that uses cygwin and they started getting this
error. We have not seen this before. Is there anything we can do to fix
this?

5[main] mv 520 find_fast_cwd: WARNING: Couldn't compute FAST_CWD pointer:
Please report this problem to the public mailing list cygwin@cygwin.com

Thank you,
-- 
*Reese Borchers*
Manufacturing Services Support, *Optimation*
700 NE RD Mize Rd. Suite 101, Blue Springs, MO, 64014
*(816)509-9974 rborch...@optimaiton.com *

-- 
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: Does the Cygwin setup program do internal sanity checks on startup?

2022-08-31 Thread Brian Cowan via Cygwin
Well, is it possible to use 7zip? It seems like you can do something like it 
in: 
https://superuser.com/questions/42788/is-it-possible-to-execute-a-file-after-extraction-from-a-7-zip-self-extracting-a

Not that I think this would help with heuristics, and some AV tools REALLY 
don't like executing things from users' temp directories. (Which .Net 
applications seem to like to do sometimes.)

Maybe have compressed and uncompressed installers?

Brian Cowan
HCL Software
Technical Specialist, ClearCase SWAT
brian.co...@hcl.com


-Original Message-
From: Cygwin  On Behalf Of Jon 
Turney
Sent: Sunday, August 28, 2022 11:46 AM
To: The Cygwin Mailing List 
Subject: Re: Does the Cygwin setup program do internal sanity checks on startup?

[CAUTION: This Email is from outside the Organization. Unless you trust the 
sender, Don't click links or open attachments as it may be a Phishing email, 
which can steal your Information and compromise your Computer.]

On 25/08/2022 19:14, Brian Cowan via Cygwin wrote:
> And this was exactly it. I downloaded the latest UPX version, and it
> crashed on startup. I downloaded the Linux version on another host,
> copied the setup program to that host and extracted it there. NOW I
> can update Cygwin...

I wonder if UPX compression of setup makes as much sense now as it did
20+ years ago.

Not only does it (occasionally) generate problems like this, but also with 
malware detection heuristics.

OTOH, not using it would make setup ~4x larger.
::DISCLAIMER::

The contents of this e-mail and any attachment(s) are confidential and intended 
for the named recipient(s) only. E-mail transmission is not guaranteed to be 
secure or error-free as information could be intercepted, corrupted, lost, 
destroyed, arrive late or incomplete, or may contain viruses in transmission. 
The e mail and its contents (with or without referred errors) shall therefore 
not attach any liability on the originator or HCL or its affiliates. Views or 
opinions, if any, presented in this email are solely those of the author and 
may not necessarily reflect the views or opinions of HCL or its affiliates. Any 
form of reproduction, dissemination, copying, disclosure, modification, 
distribution and / or publication of this message without the prior written 
consent of authorized representative of HCL is strictly prohibited. If you have 
received this email in error please delete it and notify the sender 
immediately. Before opening any email and/or attachments, please check them for
  viruses and other defects.


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