1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-14 23:46:10 +00:00
freebsd-ports/security/skip/files/patch-ac

33 lines
833 B
Plaintext
Raw Normal View History

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 Mar 8 21:33:39 1999
@@ -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
+