Browse Source

/usr/libexec should not be put into the PATH

rely on the PATH set up in the root crontab(5), just like in monthly(8)
suggested by ajacoutot@; "i like this" okan@; feedback jmc@ sthen@;
"absolutely" deraadt@
OPENBSD_4_6
schwarze 15 years ago
parent
commit
3a0615b67a
1 changed files with 2 additions and 5 deletions
  1. +2
    -5
      src/etc/weekly

+ 2
- 5
src/etc/weekly View File

@ -1,11 +1,8 @@
# #
# $OpenBSD: weekly,v 1.21 2009/05/10 19:27:25 schwarze Exp $
# $OpenBSD: weekly,v 1.22 2009/05/18 19:57:56 schwarze Exp $
# #
umask 022 umask 022
PATH=/bin:/sbin:/usr/sbin:/usr/bin:/usr/libexec
export PATH
PARTOUT=/var/log/weekly.part PARTOUT=/var/log/weekly.part
MAINOUT=/var/log/weekly.out MAINOUT=/var/log/weekly.out
install -o 0 -g 0 -m 600 /dev/null $PARTOUT install -o 0 -g 0 -m 600 /dev/null $PARTOUT
@ -64,7 +61,7 @@ if [ -f /var/db/locate.database ]; then
fi fi
next_part "Rebuilding whatis databases:" next_part "Rebuilding whatis databases:"
makewhatis
/usr/libexec/makewhatis
# If LOGINACCOUNTING is set to 1 in the environment, report user # If LOGINACCOUNTING is set to 1 in the environment, report user
# accounting information # accounting information


Loading…
Cancel
Save