This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Problem with NC.1.107
- From: L A Walsh <cygwin at tlinx dot org>
- To: cygwin at cygwin dot com
- Date: Mon, 09 Apr 2018 18:51:59 -0700
- Subject: Re: Problem with NC.1.107
- References: <CAE=SzZUe8O3q4hnucctrWr=wvJwHszn8XqpqgYOSG6EOxa3iaQ@mail.gmail.com> <1732290424.20180328171523@yandex.ru>
Andrey Repin wrote:
Greetings, Jay Cotton!
Since nc does not reply to --version, I have no way to tell if it's the same
you are running with.
---
That's odd. But has to do with what version of ncat is run.
I notice my linux machine says:
nc --version
Ncat: Version 6.47 ( http://nmap.org/ncat )
But the version in cygwin:
cygcheck -f /usr/bin/nc
nc-1.107-4
is very different. Not sure which is newer or better, but
the version at nmap.org supports SCTP, though the BSD version
supports QOS. Not sufficiently versed in either to know
all the differences. Seems like the nmap.org version has more
options: 44 vs. BSD's 28 (didn't double count switches from nmap
that have a short+long form).
Where do the sources from the BSD version come from? It
doesn't seem to list a website.
The file permissions are messed up.
---
I didn't notice this.
$ file /usr/bin/nc
/usr/bin/nc: writable, executable, regular file, no read permission
I don't see the PE32+ executable (console) x86-64, for MS Windows
string.
---
weird -- when I tried that, got:
file /usr/bin/nc
/usr/bin/nc: PE32+ executable (console) x86-64 (stripped to external PDB), for MS Windows
here is the file in /usr/bin
$ ls -l nc*
-rwxr-xr-x 1 lbmgm lbmgm 24576 Mar 19 2013 nc.exe
----
Looks like the same file I have:
ll /usr/bin/nc
-rwxr-xr-x+ 1 24576 Mar 19 2013 /usr/bin/nc*
I'm not sure your file command is referencing the same file,
since my ls shows the same size and date as yours, and clearly
both show read+execute for U,G and other and write only for owner.
I looked at the make file, it seems to be o.k. for generating a
runable program. (uses gcc) but I don't have enough stuff installed
to allow a build.
---
I think something is wrong with your 'file' command. My nc-binary
didn't come with a makefile (only binary & manpage):
cygcheck -l nc
/usr/bin/nc.exe
/usr/share/man/man1/nc.1.gz
--
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