summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorsheldonh <sheldonh@FreeBSD.org>1999-06-21 18:36:18 +0000
committersheldonh <sheldonh@FreeBSD.org>1999-06-21 18:36:18 +0000
commit3d09e3478e6a15a90f52c2412d260751cc4d0147 (patch)
tree03616c2e35626d69ca4a0d1773daf8bee5565924 /etc
parent0571a0f6332f5398e0ec937cf52b258f6b873e0d (diff)
downloadFreeBSD-src-3d09e3478e6a15a90f52c2412d260751cc4d0147.zip
FreeBSD-src-3d09e3478e6a15a90f52c2412d260751cc4d0147.tar.gz
Update the locate database even if user nobody can't stat root's
home directory. PR: 10700 Submitted by: Sergey Korsak <skif@1plus1.net>
Diffstat (limited to 'etc')
-rwxr-xr-xetc/periodic/weekly/310.locate3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/periodic/weekly/310.locate b/etc/periodic/weekly/310.locate
index 39455b1..f55d2ed 100755
--- a/etc/periodic/weekly/310.locate
+++ b/etc/periodic/weekly/310.locate
@@ -1,6 +1,6 @@
#!/bin/sh -
#
-# $Id: 310.locate,v 1.1.1.1 1997/08/16 17:04:02 pst Exp $
+# $Id: 310.locate,v 1.2 1997/11/01 15:00:40 wosch Exp $
#
locdb=/var/db/locate.database
@@ -11,6 +11,7 @@ if [ -x /usr/libexec/locate.updatedb -a -f $locdb ] ; then
touch ${locdb}; chown nobody ${locdb}; chmod 644 ${locdb}
+ cd /
echo /usr/libexec/locate.updatedb | nice -5 su -fm nobody
chmod 444 ${locdb}
fi
OpenPOWER on IntegriCloud