Re: netcat service lookup

2016-06-01 Thread Bob Beck
That's ok.. every newbie fucks that up the first time when sending out diffs. Those of us that commit generally speak only -current. Now you know :) > Oh, someone pointed the possible problem out to me: > I'm running OpenBSD 5.9 instead of current.

Re: netcat service lookup

2016-06-01 Thread Andras Farkas
Oh, someone pointed the possible problem out to me: I'm running OpenBSD 5.9 instead of current. Sorry. On Thu, Jun 2, 2016 at 3:58 AM, Andras Farkas wrote: >> Andras - your original diff does not apply to -current as mailed, and >> you also have a bug when the -v option is used, because you end

Re: netcat service lookup

2016-06-01 Thread Andras Farkas
Andras - your original diff does not apply to -current as mailed, and you also have a bug when the -v option is used, because you end up putting port names in the portlist array instead of numbers and so -v doesn't work right. Try this instead: Thank you, I was trying to look for bugs and still

Re: netcat service lookup

2016-06-01 Thread Bob Beck
> > I certainly like to use names wherever i can. > Allright allright.. so openssl s_client does actually do it.. So benno, you and philip have guilted me into it.. Andras - your original diff does not apply to -current as mailed, and you also have a bug when the -v option is used, because you

Re: netcat service lookup

2016-06-01 Thread Sebastian Benoit
Bob Beck(b...@openbsd.org) on 2016.05.31 23:25:47 -0600: > Honestly, I care little about the incompatibility because we are > already different. > > However I do not think this is any "easier" - I never use > /etc/services because frankly I can't > predict what other non-openbsd systems will have

Re: netcat service lookup

2016-05-31 Thread Theo de Raadt
> On Tue, May 31, 2016 at 10:17 PM, Theo de Raadt > wrote: > >> This diff allows users to use the name of a service in /etc/services > >> instead of a port number when using netcat. Hopefully, this will make > >> using netcat easier for some users. > > > > I don't see how it makes it easier. The

Re: netcat service lookup

2016-05-31 Thread Bob Beck
Honestly, I care little about the incompatibility because we are already different. However I do not think this is any "easier" - I never use /etc/services because frankly I can't predict what other non-openbsd systems will have in it. even openssl s_client doens't add code complexity to do this

Re: netcat service lookup

2016-05-31 Thread Philip Guenther
On Tue, May 31, 2016 at 10:17 PM, Theo de Raadt wrote: >> This diff allows users to use the name of a service in /etc/services >> instead of a port number when using netcat. Hopefully, this will make >> using netcat easier for some users. > > I don't see how it makes it easier. There are a number

Re: netcat service lookup

2016-05-31 Thread Andras Farkas
Ah, okay. > I don't see how it makes it easier. There are a number of netcat > versions out there, mostly trying to be somewhat compatible. On a > whim, this introduces an incompatibility --> scripts become less > portable.

Re: netcat service lookup

2016-05-31 Thread Theo de Raadt
> This diff allows users to use the name of a service in /etc/services > instead of a port number when using netcat. Hopefully, this will make > using netcat easier for some users. I don't see how it makes it easier. There are a number of netcat versions out there, mostly trying to be somewhat

netcat service lookup

2016-05-31 Thread Andras Farkas
Evening! This diff allows users to use the name of a service in /etc/services instead of a port number when using netcat. Hopefully, this will make using netcat easier for some users. ? nc Index: nc.1 === RCS file: /cvs/src/usr.b