From hg@cally.n2wx.ampr.org  Sat Jan 30 04:58:57 1999
Received: from bbs.mpcs.com (bbs.mpcs.com [209.101.88.2])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id EAA22731
          for <freebsd-gnats-submit@freebsd.org>; Sat, 30 Jan 1999 04:58:55 -0800 (PST)
          (envelope-from hg@cally.n2wx.ampr.org)
Received: from pickle.n2wx.ampr.org (cc1017255-a.srst1.fl.home.com [24.3.122.197])
	by bbs.mpcs.com (8.8.8/8.8.8/MPCS spamzap) with ESMTP id HAA19245
	for <freebsd-gnats-submit@freebsd.org>; Sat, 30 Jan 1999 07:58:53 -0500
Received: (from root@localhost) by pickle.n2wx.ampr.org (8.9.2/8.8.2/n2wx) id HAA03850 for freebsd-gnats-submit@freebsd.org; Sat, 30 Jan 1999 07:58:52 -0500 (EST)
Received: from cally.south.mpcs.com (cally.n2wx.ampr.org [172.16.0.6])
	by pickle.n2wx.ampr.org (8.9.2/8.9.2/n2wx) with ESMTP id HAA03841
	for <freebsd-gnats-submit@freebsd.org>; Sat, 30 Jan 1999 07:55:42 -0500 (EST)
	(envelope-from hg@cally.n2wx.ampr.org)
Received: (from hg@localhost)
	by cally.south.mpcs.com (8.9.2/8.9.1) id HAA15001
	for freebsd-gnats-submit@freebsd.org; Sat, 30 Jan 1999 07:55:41 -0500 (EST)
	(envelope-from hg)
Message-Id: <199901301255.HAA15001@cally.south.mpcs.com>
Date: Sat, 30 Jan 1999 07:55:41 -0500 (EST)
From: hgoldste@bbs.mpcs.com
To: freebsd-gnats-submit@freebsd.org
Subject: <Synopsis of the problem (one line)> locate.updatedb is noisy

>Number:         9793
>Category:       bin
>Synopsis:       locate.updatedb is noisy
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 30 05:00:01 PST 1999
>Closed-Date:    Fri May 14 11:45:45 PDT 1999
>Last-Modified:  Fri May 14 11:46:28 PDT 1999
>Originator:     Howard Goldstein
>Release:        FreeBSD 3.0-STABLE i386
>Organization:
>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



>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: gnats-admin->freebsd-bugs 
Responsible-Changed-By: steve 
Responsible-Changed-When: Wed Feb 3 15:10:10 PST 1999 
Responsible-Changed-Why:  
Misfiled PR. 
State-Changed-From-To: open->closed 
State-Changed-By: wosch 
State-Changed-When: Fri May 14 11:45:45 PDT 1999 
State-Changed-Why:  
src/usr.bin/locate/locate/updatedb.sh rev 1.15 
fixed in  
>Unformatted:
