SOURCES: xinetd.inet.sh - PORT is not required for RPC services

qboosh qboosh at pld-linux.org
Sun Mar 12 15:39:30 CET 2006


Author: qboosh                       Date: Sun Mar 12 14:39:30 2006 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- PORT is not required for RPC services

---- Files affected:
SOURCES:
   xinetd.inet.sh (1.12 -> 1.13) 

---- Diffs:

================================================================
Index: SOURCES/xinetd.inet.sh
diff -u SOURCES/xinetd.inet.sh:1.12 SOURCES/xinetd.inet.sh:1.13
--- SOURCES/xinetd.inet.sh:1.12	Tue Aug  9 23:19:08 2005
+++ SOURCES/xinetd.inet.sh	Sun Mar 12 15:39:25 2006
@@ -22,7 +22,9 @@
 
 	[ "${SERVICE_NAME:-not}" = "not" ]	&& ERROR_CODE=11
 	[ "${PROTOCOL:-not}" = "not" ]		&& ERROR_CODE=12
-	[ "${PORT:-not}" = "not" ]		&& ERROR_CODE=13
+	if [ "${RPCNAME:-not}" = "not" ]; then
+		[ "${PORT:-not}" = "not" ]	&& ERROR_CODE=13
+	fi
 	[ "${USER:-not}" = "not" ]		&& ERROR_CODE=14
 	[ "${SERVER:-not}" = "not" ]		&& ERROR_CODE=15
 	[ "${FLAGS:-not}" = "not" ]		&& ERROR_CODE=16
@@ -74,7 +76,9 @@
 	[ "${XSERVICE_TYPE:-n}" = "n" ] || echo "	type		=$XSERVICE_TYPE"
 	echo "	socket_type	= $SOCK_TYPE"
 	echo "	protocol	= $PROTOCOL"
-	echo "	port		= $PORT"
+	if [ "${PORT:-not}" != "not" ]; then
+		echo "	port		= $PORT"
+	fi
 	echo "	user		= $USER"
 	[ "${GROUP:-n}" = "n" ] || echo "	group		= $GROUP"
         if [ "$SERVER" = "tcpd" ] ; then
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/xinetd.inet.sh?r1=1.12&r2=1.13&f=u



More information about the pld-cvs-commit mailing list