diff options
author | jung <jung@openbsd.org> | 2020-02-12 20:51:49 +0000 |
---|---|---|
committer | jung <jung@openbsd.org> | 2020-02-12 20:51:49 +0000 |
commit | dd6e8aa178f2cf53999f83c88c0698766acef98c (patch) | |
tree | f7f9d15867d84382d6096d9e235370b7a98536dd /etc | |
parent | - print 'dlen=' to make it more clear what that number indicates (diff) | |
download | wireguard-openbsd-dd6e8aa178f2cf53999f83c88c0698766acef98c.tar.xz wireguard-openbsd-dd6e8aa178f2cf53999f83c88c0698766acef98c.zip |
do not propagate TMPDIR and override value from /etc/locate.rc in weekly
effectively reverting r1.9 to follow principal of least surprise
"this is fine" millert
"i agree with direction" schwarze
Diffstat (limited to 'etc')
-rw-r--r-- | etc/weekly | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/weekly b/etc/weekly index c86b9a57c86..d6441cfae11 100644 --- a/etc/weekly +++ b/etc/weekly @@ -1,5 +1,5 @@ # -# $OpenBSD: weekly,v 1.29 2019/12/30 16:49:51 espie Exp $ +# $OpenBSD: weekly,v 1.30 2020/02/12 20:51:49 jung Exp $ # # For local additions, create the file /etc/weekly.local. # To get section headers, use the function next_part in weekly.local. @@ -48,7 +48,7 @@ if [ -f /var/db/locate.database ]; then if TMP=`mktemp /var/db/locate.database.XXXXXXXXXX`; then trap 'rm -f $TMP; exit 1' 0 1 15 UPDATEDB="/usr/libexec/locate.updatedb" - echo "${UPDATEDB} --fcodes=- --tmpdir=${TMPDIR:-/tmp}" | \ + echo "${UPDATEDB} --fcodes=-" | \ nice -5 su -m nobody 1>$TMP if [ $? -ne 0 ]; then echo "Rebuilding locate database failed" |