Donate Share

The GNU netcat

Tracker: Bugs

5 netcat returns EXIT_FAILURE on success in NETCAT_LISTEN mode - ID: 2690079
Last Update: Attachment added ( nobody )

When run in listen mode, netcat returns EXIT_FAILURE even on success. Thus,
one cannot distinguish between a successfully served request and a
cancellation via CTRL-C.

glob_ret should be set to EXIT_SUCCESS after a successful server request.
See attached patch.


Nobody/Anonymous ( nobody ) - 2009-03-17 13:28

5

Open

None

Nobody/Anonymous

None

None

Public


Comments




Log in to comment.

No follow-up comments have been posted.

Attached File ( 1 )

Filename Description Download
0001-set-return-value-to-EXIT_SUCCESS-on-successful-compl.patch Download

Change ( 1 )

Field Old Value Date By
File Added 318178: 0001-set-return-value-to-EXIT_SUCCESS-on-successful-compl.patch 2009-03-17 13:28 nobody