freebsd-ports/security/skip/files/patch-ac

33 lines
833 B
Plaintext

diff -ur --unidirectional-new-file skipsrc-1.0.orig/admin/hosts.4.x work.new/admin/hosts.4.x
--- skipsrc-1.0.orig/admin/hosts.4.x Fri Oct 25 13:13:14 1996
+++ work.new/admin/hosts.4.x Mon Jan 24 12:35:36 2000
@@ -46,20 +46,18 @@
#
# SKIP host access control information
#
-PATH=/usr/skip/bin:/bin export PATH
-SKIP_ACL=/etc/skip/acl.*
+PREFIX=@@PREFIX@@
+SKIP_BIN=${PREFIX}/bin
+PATH=${SKIP_BIN}:${PATH} export PATH
+SKIP_ACL=${PREFIX}/etc/skip/acl.*
SKIP_NOCHECK=no; export SKIP_NOCHECK
OS_NAME=`uname`
-echo "starting SKIP for $OS_NAME v1.0." > /dev/console
-
# Update ACL for each SKIP interface
#
-for acl in $SKIP_ACL "end" ; do
- if [ $acl = "end" ]; then
- break
- fi
- if [ -f $SKIP_ACL ]; then
- . $SKIP_ACL > /dev/null
+for ACL in ${SKIP_ACL}; do
+ if [ -f "${ACL}" ]; then
+ . ${ACL} > /dev/null
fi
done
+