xinetd-org/xinetd — pull request #7 by octurite (2013-09-26 07:23:22+00:00)
Title: rfc1078 TCPMUX help and service name read bugfix 

BUGFIX

xinetd could read more than just the TCPMUX service name and corrupt input to a TCPMUX service. The service_name is now read one byte at time to avoid reading past the service_name CRLF before invoking the child service.

FEATURE ADDTION

help is reserved keyword according to rfc1078 and must list TCPMUX
services

This is an implementation of the help command for the tcpmux-server
builtin service included in xinetd.

The patch also introduces new flag MUXHELP which is required for
the tcpmux service to be published via the help command. TCPMUX and
TCPMUXPLUS services which do not have the MUXHELP flag are not listed
in order to preserve the existing behavior and to support providing
unpublished TCPMUX services.