Date: Sat, 30 Jan 1999 07:48:02 -0500 (EST) From: hgoldste@bbs.mpcs.com To: FreeBSD-bugs@FreeBSD.ORG Subject: <Synopsis of the problem (one line)> locate.updatedb is noisy Message-ID: <199901301248.HAA14978@cally.south.mpcs.com>
index | next in thread | raw e-mail
>Submitter-Id: current-users
>Originator: Howard Goldstein
>Organization:
>Confidential: no
>Synopsis: locate.updatedb is noisy
>Severity: non-critical
>Priority: low
>Category: <[ bin | conf | docs | gnu | i386 | kern | misc | ports ]> conf
>Release: FreeBSD 3.0-STABLE i386
>Class: sw-bug
>Environment:
FreeBSD cally.south.mpcs.com 3.0-STABLE FreeBSD 3.0-STABLE #7: Thu Jan 28 21:48:17 EST 1999 hg@cally.south.mpcs.com:/usr/src/sys/compile/CALLY i386
cally:~$ ident /usr/libexec/locate.updatedb
/usr/libexec/locate.updatedb:
$Id: updatedb.sh,v 1.12 1998/11/29 14:46:35 wosch Exp $
>Description:
/usr/libexec/locate.updatedb echos a spurious echo $? near its end.
Nothing appears to use it but it winds up in the periodic report
as bit fluff
see the 'echo 0' near the end of this trace
cally: {3} sh -x /usr/libexec/locate.updatedb
+ LOCATE_CONFIG=/etc/locate.rc
+ [ -f /etc/locate.rc -a -r /etc/locate.rc ]
+ . /etc/locate.rc
+ : /usr/libexec
+ export LIBEXECDIR
+ : /tmp
+ export TMPDIR
+ mktemp -d /tmp/locateXXXXXX
+ TMPDIR=/tmp/locateo14422
+ PATH=/usr/libexec:/bin:/usr/bin:/usr/cally/home/hg/bin:/bin:/usr/bin:/usr/game
s:/usr/local/bin:/usr/X11R6/bin
+ export PATH
+ : locate.mklocatedb
+ : /var/db/locate.database
+ : /
+ : /tmp /usr/tmp /var/tmp
+ : ufs
+ : find
+ excludes=! ( or=
+ excludes=! ( -fstype ufs
+ or=-or
+ excludes=! ( -fstype ufs ) -prune
+ excludes=! ( -fstype ufs ) -prune -or -path /tmp -prune
+ excludes=! ( -fstype ufs ) -prune -or -path /tmp -prune -or -path /usr/tmp -p
rune
+ excludes=! ( -fstype ufs ) -prune -or -path /tmp -prune -or -path /usr/tmp -p
rune -or -path /var/tmp -prune
+ tmp=/tmp/locateo14422/_updatedb14420
+ trap rm -f $tmp; rmdir $TMPDIR 0 1 2 3 5 10 15
+ find -s / ! ( -fstype ufs ) -prune -or -path /tmp -prune -or -path /usr/tmp -p
rune -or -path /var/tmp -prune -or -print
+ locate.mklocatedb -presort
+ find /tmp/locateo14422/_updatedb14420 -size -257c -print
+ cat /tmp/locateo14422/_updatedb14420
+ echo 0
0
+ rm -f /tmp/locateo14422/_updatedb14420
+ rmdir /tmp/locateo14422
cally: {4}
>How-To-Repeat:
su
sh -x /etc/periodic/weekly/310.locate
>Fix:
*** /usr/libexec/locate.updatedb.orig Sat Jan 30 07:39:58 1999
--- /usr/libexec/locate.updatedb Sat Jan 30 07:40:04 1999
***************
*** 86,89 ****
exit 1
esac
fi
- echo $?
--- 86,88 ----
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199901301248.HAA14978>
