Skip to contentSkip to conversation

Netcat does not work due to incorrect assumptions about signed chars.

Buildroot bugzilla at busybox.net 1 participant 8 messages Jul 20, 2010 – Feb 28, 2013 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

https://bugs.busybox.net/show_bug.cgi?id=2245

Nick Leverton <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

                 CC|                            |buildroot at uclibc.org,
                   |                            |nick at leverton.org
          Component|Other                       |Other
            Version|1.16.x                      |2010.05
         AssignedTo|unassigned at busybox.net      |unassigned at buildroot.uclibc
                   |                            |.org
            Product|Busybox                     |buildroot

--- Comment #2 from Nick Leverton <[email protected]> --- I apologise, I meant to file it under buildroot. My mistake.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#2 lore raw
In reply to a message not in the archive

https://bugs.busybox.net/show_bug.cgi?id=2245

Peter Korsgaard <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED

--- Comment #3 from Peter Korsgaard <[email protected]> --- Committed, thanks.

Out of interest, why are you using the old "big" netcat version instead of the busybox applet?

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#3 lore raw
In reply to a message not in the archive

https://bugs.busybox.net/show_bug.cgi?id=2245

--- Comment #4 from Nick Leverton <[email protected]> --- Hi, thankyou for the commit.

To be honest I missed that busybox implements nc - except my subconscious obviously remembered since I mis-filed this bug in the first place ! Thanks, I'll check out its features to see if it can do what I need.

I was looking for a netcat version which is flag-compatible with OpenBSD netcat to ease the porting of some scripts. I needed -k (keep listening after first connection closes) so I've been through the various netcats to check how they behaved without that option. GNU netcat doesn't have -k, but since it's in the tree already I figured I might as well submit the fix to make it run.

I've now got BSD netcat on my target anyway, the Debian patches to build it under Linux work pretty well for buildroot too. I can submit the package if you are at all interested in having a third nc implementation in buildroot ...

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#4 lore raw
In reply to a message not in the archive

https://bugs.busybox.net/show_bug.cgi?id=2245

--- Comment #5 from Peter Korsgaard <[email protected]> --- (In reply to comment #4)

Quoted 3 lines

I've now got BSD netcat on my target anyway, the Debian patches to build it under Linux work pretty well for buildroot too. I can submit the package if you are at all interested in having a third nc implementation in buildroot ...

Thanks, but to be honest - Not really.

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#5 lore raw

[Buildroot] [Bug 2245] nc need to support -k (multiple listen) BSD extension

In reply to a message not in the archive

https://bugs.busybox.net/show_bug.cgi?id=2245

Denys Vlasenko <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

          Component|Other                       |Other
            Version|2010.05                     |1.16.x
         AssignedTo|unassigned at buildroot.uclibc |unassigned at busybox.net
                   |.org                        |
            Product|buildroot                   |Busybox
            Summary|Netcat does not work due to |nc need to support -k
                   |incorrect assumptions about |(multiple listen) BSD
                   |signed chars.               |extension

--- Comment #6 from Denys Vlasenko <[email protected]> --- Hijacking this bug for my own evil plans :D

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#6 lore raw

[Buildroot] [Bug 2245] nc need to support -k (multiple listen) BSD extension

In reply to a message not in the archive

https://bugs.busybox.net/show_bug.cgi?id=2245

Denys Vlasenko <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#7 lore raw

[Buildroot] [Bug 2245] nc needs to support -k (multiple listen) BSD extension

In reply to a message not in the archive

https://bugs.busybox.net/show_bug.cgi?id=2245

Denys Vlasenko <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

            Summary|nc need to support -k       |nc needs to support -k
                   |(multiple listen) BSD       |(multiple listen) BSD
                   |extension                   |extension
Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
#8 lore raw

[Buildroot] [Bug 2245] nc needs to support -k (multiple listen) BSD extension

In reply to a message not in the archive

https://bugs.busybox.net/show_bug.cgi?id=2245

Denys Vlasenko <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

             Status|REOPENED                    |RESOLVED
         Resolution|                            |FIXED

--- Comment #7 from Denys Vlasenko <[email protected]> 2013-02-28 11:20:58 UTC --- Fixed in git:

commit de6f14800675cd0401106876da81da7618de71c6

Author: Denys Vlasenko <[email protected]>
Date:   Thu Feb 28 12:20:06 2013 +0100

nc_bloaty: support -ll and -lk. Closes 2245

Signature · 3 lines
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.