Blob Blame History Raw
Do not add /usr/local/bin or /usr/local/sbin to the PATH in any scripts.

diff -Naur arpwatch-3.1-original/arpfetch arpwatch-3.1/arpfetch
--- arpwatch-3.1-original/arpfetch	2013-02-16 03:10:28.000000000 -0500
+++ arpwatch-3.1/arpfetch	2020-11-07 11:44:13.159658841 -0500
@@ -4,8 +4,6 @@
 # arpfetch - collect arp data from a cisco using net-snmp
 #
 
-export PATH="/usr/local/bin:${PATH}"
-
 prog=`basename $0`
 
 if [ $# -ne 2 ]; then
diff -Naur arpwatch-3.1-original/bihourly.sh arpwatch-3.1/bihourly.sh
--- arpwatch-3.1-original/bihourly.sh	2016-09-16 22:40:54.000000000 -0400
+++ arpwatch-3.1/bihourly.sh	2020-11-07 11:44:19.603699928 -0500
@@ -3,9 +3,6 @@
 #
 #  bihourly arpwatch job
 #
-PATH=${PATH}:/usr/local/sbin
-export PATH
-#
 cd /usr/local/arpwatch
 #
 list="`cat list`"
diff -Naur arpwatch-3.1-original/update-ethercodes.sh.in arpwatch-3.1/update-ethercodes.sh.in
--- arpwatch-3.1-original/update-ethercodes.sh.in	2020-04-05 20:35:37.000000000 -0400
+++ arpwatch-3.1/update-ethercodes.sh.in	2020-11-07 11:44:23.293723456 -0500
@@ -4,9 +4,6 @@
 #  Generate ethercodes.dat
 #
 
-PATH=/usr/local/bin:${PATH}
-export PATH
-
 if [ ! -f arp.dat ]; then
 	cd /usr/local/arpwatch || exit 1
 fi