[ANNOUNCEMENT] Updated: socat 1.7.2.4-1, 2.0.0-b7-1

2014-05-09 Thread Andrew Schulman
Two new versions of socat are available in the Cygwin distribution:

  1.7.2.4-1  - current
  2.0.0-b7-1 - test

These are new upstream releases, that address a security vulnerability
(possible buffer overflow) in previous versions.

Security advisory: 
  http://www.dest-unreach.org/socat/contrib/socat-secadv5.txt
Upstream changelog:
  http://www.dest-unreach.org/socat/doc/CHANGES.  

These versions also add IPv6 support (TCP6, TCP6-LISTEN, UDP6,
UDP6-DATAGRAM, ...) for the first time in Cygwin.  This feature hasn't
been tested much yet, so please test and report any findings (good or
bad) here.

socat is a relay for bidirectional data transfer between two independent
data channels. Each of these data channels may be a file, pipe, device
(serial line etc. or a pseudo terminal), a socket (UNIX, IP4, IP6 - raw,
UDP, TCP), an SSL socket, proxy CONNECT connection, a file descriptor
(stdin etc.), the GNU line editor (readline), a program, or a
combination of two of these. These modes include generation of
'listening' sockets, named pipes, and pseudo terminals. socat can be
used, e.g., as TCP port forwarder (one-shot or daemon), as an external
socksifier, for attacking weak firewalls, as a shell interface to UNIX
sockets, IP6 relay, for redirecting TCP oriented programs to a serial
line, to logically connect serial lines on different computers, or to
establish a relatively secure environment (su and chroot) for running
client or server shell scripts with network connections.

Andrew E. Schulman


***


To update your installation, click on the "Install Cygwin now" link on
the http://cygwin.com/ web page.  This downloads setup.exe to your
system.  Then, run setup and answer all of the questions.

  *** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO ***

If you want to unsubscribe from the cygwin-announce mailing list, look
at the "List-Unsubscribe: " tag in the email header of this message.
Send email to the address specified there.  It will be in the format:

cygwin-announce-unsubscribe-you=yourdomain.com_at_cygwin.com

If you need more information on unsubscribing, start reading here: 

http://cygwin.com/lists.html#subscribe-unsubscribe

Please read *all* of the information on unsubscribing that is available
starting at this URL.

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Microsoft Accounts (was Re: Problem with "None" Group on Non-Domain Members)

2014-05-09 Thread Corinna Vinschen
On May  8 19:17, Robert Pendell wrote:
> On Thu, May 8, 2014 at 4:09 PM, Corinna Vinschen wrote:
> > I created a new snapshot on http://cygwin.com/snapshots/ which
> > introduces the following behaviour, which is a bit less intrusive:
> >
> > If a local account is connected to a Microsoft Account, the primary
> > group defaults to "Users".  If it's a normal local accout it defaults
> > to "None", as usual.  This also covers mkpasswd from the snapshot.
> >
> > This does not work if you continue to use an already existing
> > /etc/passwd file.  I have no good solution for this sccenario, other
> > than a (yet to be written) FAQ entry.
> >
> > Hope that helps nevertheless.
> 
> Thanks for all the effort you have put forth on this issue Corinna.  I
> checked the snapshot today and found the behavior to be matching what
> you described.  An expected side effect right now is that old files
> still have the group SID set to the user SID as well as all the other
> installed files placed by the OS however there isn't much we can do
> there beyond changing the group manually for the files.

Indeed.  Cygwin can't (and must not) change the permissions of existing
files.  But usually this shoudn't hurt, unless a file of a security
sensitive application is affected.


Thanks for testing!
Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat


pgppdLxKyAX0o.pgp
Description: PGP signature


Re: socat with IP6 support?

2014-05-09 Thread Corinna Vinschen
On May  8 22:05, Andrew Schulman wrote:
> > On May  8 15:23, Andrew Schulman wrote:
> > > > On Jan 20 03:45, Andrew Schulman wrote:
> > > > > Cygwin doesn't seem to
> > > > > define IPV6_DSTOPTS.  In Ubuntu, it's defined in
> > > > > /usr/include/linux/in6.h (value 59), along with a whole bunch of other
> > > > > IPv6 socket options.
> > > > > 
> > > > > I'm not sure what the best solution is here.  I could define it 
> > > > > locally,
> > > > > but would it be better for Cygwin to bring in the missing definitions?
> > > > 
> > > > I don't think so.  I checked the available options on Windows again,
> > > > and IPV6_DSTOPTS is not supported.  I applied a small patch a few
> > > > minutes ago to add a few socket options our headers were missing,
> > > > but there are still a lot of Linux socket options not supported on
> > > > Windows which hinders CYgwin to support them.
> > > > 
> > > > Any chance you could tweak this piece of code to be built only
> > > > if IPV6_DSTOPTS is defined?
> > > > 
> > > > Corinna
> > > 
> > > I finally got back to this.  I seem to have worked around the problem in
> > > socat v2.  I've uploaded new packages for 1.7 and 2 that have IPv6 
> > > support,
> > > but that will need to be tested.  Andrew
> > 
> > I can do that in my local IPv6 setup, if you give me an easy example...
> > 
> > Corinna
> 
> To copy file1 to file2 on the localhost, run:
> 
>   socat tcp6-listen: file2
> 
> to set up a listener, and:
> 
>   socat tcp6:[::1]: file1
> 
> to connect to the listener and transfer the file.
> 
> If you have two hosts, you could try the same, running the first command
> on the server, and the second command substituting the ipv6 address of
> the server in place of ::1.

Testing this on 64 bit, with socat 1.7.2.4, and a Linux peer in both
directions works fine.

Do you need a test of the 2.0 test version as well?


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat


pgpUuJPxg66TR.pgp
Description: PGP signature


Enquiry on Cygwin function - file sharing between Windows and Windows

2014-05-09 Thread Marco Lau
Dear Cygwin,

Further to FAQ 4.28, we know that Cygwin can provide a SCP protocol
for file sharing between Unix and Windows and we have been using this
tool for years.

My question is, can we do the same thing for file sharing between
Windows and Windows?

I know there are huge number of sftp applications can serve for the
purpose but I am really interested can Cygwin support file sharing
between Windows Servers platform.

Thanks & regards,
Marco

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Enquiry on Cygwin function - file sharing between Windows and Windows

2014-05-09 Thread Marco Atzeri

On 09/05/2014 11:07, Marco Lau wrote:

Dear Cygwin,

Further to FAQ 4.28, we know that Cygwin can provide a SCP protocol
for file sharing between Unix and Windows and we have been using this
tool for years.

My question is, can we do the same thing for file sharing between
Windows and Windows?

I know there are huge number of sftp applications can serve for the
purpose but I am really interested can Cygwin support file sharing
between Windows Servers platform.

Thanks & regards,
Marco



yes ,
of course as with Unix you need to install and run the ssh server.

Regards
Marco


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: socat with IP6 support?

2014-05-09 Thread Andrew Schulman
> > To copy file1 to file2 on the localhost, run:
> > 
> > socat tcp6-listen: file2
> > 
> > to set up a listener, and:
> > 
> > socat tcp6:[::1]: file1
> > 
> > to connect to the listener and transfer the file.
> > 
> > If you have two hosts, you could try the same, running the first command
> > on the server, and the second command substituting the ipv6 address of
> > the server in place of ::1.
> 
> Testing this on 64 bit, with socat 1.7.2.4, and a Linux peer in both
> directions works fine.
> 
> Do you need a test of the 2.0 test version as well?

Yes please, since 2.0 is where I had to apply a patch to remove the use
of IPV6_DSTOPTS.  I do have an ipv6 host here that I tested it on, but
it would be good to have another test.


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



strace and sigprocmask

2014-05-09 Thread Henry S. Thompson
Running on Windows 8.1, with 32-bit Cygwin v1.7.29.

I've taken straces of a problematic area of xemacs, tidied them, and
am trying to locate significant differences.

I'm seeing something I don't understand, which isn't causing a crash
so probably isn't significant, but I'd like to understand it better.

strace 1 has:
 [main] PID1  sigprocmask:  0   =   sigprocmask(2647444,   0xNULL, 0xNULL)
where strace 2 has:
 [main] PID1  sigprocmask:  0   =   sigprocmask(2649272,   0xNULL, 0xADDR)

Similar lines appear frequently in both straces.

Either I don't understand strace output, or this is bizarre -- the
first arg to sigprocmask should always be 0, 1 or 2, right?

I'd welcome any help in understanding how I should be reading this,
and more generally, how I could have found the answer to my question
myself.

Thanks,

ht
-- 
   Henry S. Thompson, School of Informatics, University of Edinburgh
  10 Crichton Street, Edinburgh EH8 9AB, SCOTLAND -- (44) 131 650-4440
Fax: (44) 131 650-4587, e-mail: h...@inf.ed.ac.uk
   URL: http://www.ltg.ed.ac.uk/~ht/
 [mail from me _always_ has a .sig like this -- mail without it is forged spam]

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: strace and sigprocmask

2014-05-09 Thread Christopher Faylor
On Fri, May 09, 2014 at 01:55:51PM +0100, Henry S. Thompson wrote:
>Running on Windows 8.1, with 32-bit Cygwin v1.7.29.
>
>I've taken straces of a problematic area of xemacs, tidied them, and
>am trying to locate significant differences.
>
>I'm seeing something I don't understand, which isn't causing a crash
>so probably isn't significant, but I'd like to understand it better.
>
>strace 1 has:
> [main] PID1  sigprocmask:  0   =   sigprocmask(2647444,   0xNULL, 0xNULL)
>where strace 2 has:
> [main] PID1  sigprocmask:  0   =   sigprocmask(2649272,   0xNULL, 0xADDR)
>
>Similar lines appear frequently in both straces.
>
>Either I don't understand strace output, or this is bizarre -- the
>first arg to sigprocmask should always be 0, 1 or 2, right?
>
>I'd welcome any help in understanding how I should be reading this,
>and more generally, how I could have found the answer to my question
>myself.

This is a a bug (now fixed) in the source.  The first argument to
sigprocmask was not being sent to the strace printf, pushing all of the
arguments left.

As to how you could have found the answer, it's the standard answer for
free software projects - look at the source.

cgf

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Cygwin home looking at wrong directory

2014-05-09 Thread xmoon 2000
 My IT just installed Cygwin on a machine with 2 drives c and d.

They appear to have installed on both drives (not sure why!)

How can I tell Cygwin which drive I want it to use?

There is NO windows environment HOME variable set.

So how is it choosing D drive version over the C drive version that I want?

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: socat with IP6 support?

2014-05-09 Thread Corinna Vinschen
On May  9 06:01, Andrew Schulman wrote:
> > > To copy file1 to file2 on the localhost, run:
> > > 
> > >   socat tcp6-listen: file2
> > > 
> > > to set up a listener, and:
> > > 
> > >   socat tcp6:[::1]: file1
> > > 
> > > to connect to the listener and transfer the file.
> > > 
> > > If you have two hosts, you could try the same, running the first command
> > > on the server, and the second command substituting the ipv6 address of
> > > the server in place of ::1.
> > 
> > Testing this on 64 bit, with socat 1.7.2.4, and a Linux peer in both
> > directions works fine.
> > 
> > Do you need a test of the 2.0 test version as well?
> 
> Yes please, since 2.0 is where I had to apply a patch to remove the use
> of IPV6_DSTOPTS.  I do have an ipv6 host here that I tested it on, but
> it would be good to have another test.

2.0 works for me, too.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Maintainer cygwin AT cygwin DOT com
Red Hat


pgpb9zSkTd833.pgp
Description: PGP signature


Re: socat with IP6 support?

2014-05-09 Thread Andrew Schulman
> 2.0 works for me, too.

Thanks for testing.


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Cygwin home looking at wrong directory

2014-05-09 Thread Marco Atzeri

On 09/05/2014 16:34, xmoon 2000 wrote:

  My IT just installed Cygwin on a machine with 2 drives c and d.

They appear to have installed on both drives (not sure why!)

How can I tell Cygwin which drive I want it to use?

There is NO windows environment HOME variable set.

So how is it choosing D drive version over the C drive version that I want?



the one you use is the one you get.

Likely the icons are pointing to the one installed later;
however check on the their properties

Marco



--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: getent group fails

2014-05-09 Thread Denis Excoffier
On 2014-05-09 11:13, Corinna Vinschen wrote:
> On May  7 19:39, Denis Excoffier wrote:
> Thanks for the report.  I made a dumb Copy/paste error.  This should
> be fixed in the today's snapshot from http://cygwin.com/snapshots/

Indeed, it is working now.

Also, i have noticed that 'getent group' produces this line:

+Utilisateurs authentifiés:S-1-5-11:11:
 (with \303\251 meaning é, like under UTF-8)

while 'getent passwd' produces (among other lines):

+SERVICE RÉSEAU:*:20:20:,S-1-5-20:/:/sbin/nologin
  (with \311 meaning É, like under ISO-Latin)

This is with LC_CTYPE=fr_FR, no /etc/nsswitch.conf, /etc/passwd
and /etc/group with only one line each, domain member with currently no
network connected, under Cygwin 32bits 'Just Me', installed on top of
XP SP3 32bits [french only], with snapshot '20140508 19:51:25’,
and all packages up-to-date.

If i setenv LC_CTYPE C, or unsetenv LC_CTYPE, i also get UTF-8 for
'getent passwd' (ie for both).

What bothers me is that under LC_CTYPE=fr_FR (or fr_FR@euro), the
getent output is not consistent.

Regards,

Denis Excoffier.

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Enquiry on Cygwin function - file sharing between Windows and Windows

2014-05-09 Thread Andrew DeFaria

On 5/9/2014 2:33 AM, Marco Atzeri wrote:

On 09/05/2014 11:07, Marco Lau wrote:

Dear Cygwin,

Further to FAQ 4.28, we know that Cygwin can provide a SCP protocol
for file sharing between Unix and Windows and we have been using this
tool for years.

My question is, can we do the same thing for file sharing between
Windows and Windows?

I know there are huge number of sftp applications can serve for the
purpose but I am really interested can Cygwin support file sharing
between Windows Servers platform.

Thanks & regards,
Marco



yes ,
of course as with Unix you need to install and run the ssh server.


Which, luckily, comes with Cygwin! Yes install the OpenSSH package in 
Cygwin and Cygwin with OpenSSH and on the remote Windows server. Run 
ssh-host-config to set up the service and scp (or sftp) to your heart's 
content...

--
Andrew DeFaria
http://defaria.com


--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



[ANNOUNCEMENT] Updated: screen 4.2.1-1

2014-05-09 Thread Andrew Schulman
A new version of screen, 4.2.1-1, is available in the Cygwin
distribution.  This is a new upstream release.

This release may or may not fix some of the known outstanding issues
with screen:

Scrolling breaks in shells inside screen:
  http://cygwin.com/ml/cygwin/2014-01/msg00223.html
ssh segmentation fault within screen:
  http://cygwin.com/ml/cygwin/2014-05/msg00078.html

I haven't had time to test any of those against this release yet, so
test reports would be welcome.

screen is a full-screen window manager that multiplexes a physical
terminal between several processes, typically interactive shells. Each
virtual terminal provides the functions of the DEC VT100 terminal and,
in addition, several control functions from the ANSI X3.64 (ISO 6429)
and ISO 2022 standards (e.g., insert/delete line and support for
multiple character sets). There is a scrollback history buffer for each
virtual terminal and a copy-and-paste mechanism that allows the user to
move text regions between windows. When screen is called, it creates a
single window with a shell in it (or the specified command) and then
gets out of your way so that you can use the program as you normally
would. Then, at any time, you can create new (full-screen) windows with
other programs in them (including more shells), kill the current window,
view a list of the active windows, turn output logging on and off, copy
text between windows, view the scrollback history, switch between
windows, etc. All windows run their programs completely independent of
each other. Programs continue to run when their window is currently not
visible and even when the whole screen session is detached from the
user's terminal.

Andrew E. Schulman


***


To update your installation, click on the "Install Cygwin now" link on
the http://cygwin.com/ web page.  This downloads setup.exe to your
system.  Then, run setup and answer all of the questions.

  *** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO ***

If you want to unsubscribe from the cygwin-announce mailing list, look
at the "List-Unsubscribe: " tag in the email header of this message.
Send email to the address specified there.  It will be in the format:

cygwin-announce-unsubscribe-you=yourdomain.com_at_cygwin.com

If you need more information on unsubscribing, start reading here: 

http://cygwin.com/lists.html#subscribe-unsubscribe

Please read *all* of the information on unsubscribing that is available
starting at this URL.

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



[ANNOUNCEMENT] Updated: ping-1.0.2-1

2014-05-09 Thread Marco Atzeri

New versions 1.0.2-1 of ping

are available in the Cygwin distribution (32 and 64 bit) :

CHANGES
- First release for cygwin 64 bit.
  Minimal source change to remove all build warning
  with latest gcc-4.8 (additional header and some casts)

- No functional change for 32 bit, just same
  repacking than 64 bit version

- New cygwin package maintainer

DESCRIPTION

  PING
  Using the InterNet Control Message Protocol (ICMP) "ECHO" facility,
  measure round-trip-delays and packet loss across network paths.

  Author -
Mike Muuss
U. S. Army Ballistic Research Laboratory
December, 1983


ORIGINAL HOMEPAGE
  http://ftp.arl.mil/mike/ping.html


Marco Atzeri

If you have questions or comments, please send them to the
cygwin mailing list at: cygwin (at) cygwin (dot) com .

  *** CYGWIN-ANNOUNCE UNSUBSCRIBE INFO ***

If you want to unsubscribe from the cygwin-announce mailing list,
look at the "List-Unsubscribe: " tag in the email header of this
message. Send email to the address specified there. It will be in the 
format:


cygwin-announce-unsubscribe-you=yourdomain@cygwin.com

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple