delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/04/09/21:52:18

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
q=dns; s=default; b=SxfTJpy6dHV1VUD9qVonv7/nt4ZwA1V7oIipsK74dny
lpp15Jb+7fdvm/intLeTtUUU9b63+hEkuQOdaFJ/JVlpqEpg3viLfJRyEZdvUJ/u
Ge15DymQmgbr8E7AswRWuRmm6E6wQZdmhgwK5o/iW2FMiYoZRHUgxrNJwItegKzI
=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:references:in-reply-to:content-type:content-transfer-encoding;
s=default; bh=qmUKVV7H9FbkTqOTEOpgYRPqNiU=; b=wZZZx5BiM12kGNAG6
wLx7ybxpgczj7KzakPzYGoUQz/wB5ygaza34BSHwKdMhGkBq3G9FM6o1kASnKzvQ
eJJpWB1KMnhN4xFWILKJ0uem2LEa7+/hSBUcN5khKuk+rFLPP9VgxrnvKJR/ipcO
lHqGESu6XzCuU9IiFh0cBjdSUQ=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-6.4 required=5.0 tests=BAYES_00,GIT_PATCH_2,KAM_NUMSUBJECT,KAM_SHORT autolearn=ham version=3.3.2 spammy=repin, Repin, versed, website
X-HELO: Ishtar.sc.tlinx.org
Message-ID: <5ACC18BF.4080904@tlinx.org>
Date: Mon, 09 Apr 2018 18:51:59 -0700
From: L A Walsh <cygwin AT tlinx DOT org>
User-Agent: Thunderbird
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Problem with NC.1.107
References: <CAE=SzZUe8O3q4hnucctrWr=wvJwHszn8XqpqgYOSG6EOxa3iaQ AT mail DOT gmail DOT com> <1732290424 DOT 20180328171523 AT yandex DOT ru>
In-Reply-To: <1732290424.20180328171523@yandex.ru>
X-IsSubscribed: yes

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019