This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Patch suggestion for netcat-1.10.2 (ping Corinna)
- From: "Dave Korn" <davek_throwaway at hotmail dot com>
- To: cygwin at cygwin dot com
- Date: Sat, 24 Jan 2004 04:28:49 +0000
- Subject: Patch suggestion for netcat-1.10.2 (ping Corinna)
- Bcc:
Hi CV, I see you're listed as netcat maintainer.
I've got a small patch for netcat that gives it two new options (-D/-X) to
force dos or unix line ends when it's sending to the network. This comes in
quite useful for things like HTTP and SMTP servers, since strict ones only
accept CRLF. Default is to just behave as it does presently, and the entire
patch is wrapped in ifdef for good measure. Dunno if you'll think it's a
good idea or not, but here it is for your entertainment. Heh, I didn't know
whether to do a gnu-style changelog or one in the style of the existing
changelogs, so I did both.
cheers,
DaveK
--
040124
Added -D and -X options to force DOS or *nix EOLs when reading stdin.
--
* netcat.c [FORCE_EOLS] (o_eols): added new global option variable.
* netcat.c (readwrite) [FORCE_EOLS]: respect o_eols by using binary mode
fgets.
to read native EOLs or appending a chosen EOL type to gets.
* netcat.c (main) [FORCE_EOLS]: parse new options -D and -X and set o_eols.
* netcat.c (helpme) [FORCE_EOLS]: document new -D and -X options.
_________________________________________________________________
Stay in touch with absent friends - get MSN Messenger
http://www.msn.co.uk/messenger
Attachment:
cygwin-netcat-1.10-2.patch
Description: Text document
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/