SOURCES: rlinetd.inet.sh - don't require PORT for RPC services (sp...
qboosh
qboosh at pld-linux.org
Sun Mar 12 16:13:17 CET 2006
Author: qboosh Date: Sun Mar 12 15:13:16 2006 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- don't require PORT for RPC services (specify port 0 in rlinetd.conf as rlinetd requires it)
---- Files affected:
SOURCES:
rlinetd.inet.sh (1.10 -> 1.11)
---- Diffs:
================================================================
Index: SOURCES/rlinetd.inet.sh
diff -u SOURCES/rlinetd.inet.sh:1.10 SOURCES/rlinetd.inet.sh:1.11
--- SOURCES/rlinetd.inet.sh:1.10 Tue Aug 9 23:19:08 2005
+++ SOURCES/rlinetd.inet.sh Sun Mar 12 16:13:11 2006
@@ -20,7 +20,11 @@
[ ${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
+ else
+ [ ${PORT:-not} = "not" ] && PORT=0
+ fi
[ ${USER:-not} = "not" ] && ERROR_CODE=14
[ ${SERVER:-not} = "not" ] && ERROR_CODE=15
[ ${FLAGS:-not} = "not" ] && ERROR_CODE=16
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SOURCES/rlinetd.inet.sh?r1=1.10&r2=1.11&f=u
More information about the pld-cvs-commit
mailing list