Subject: misc/798: locate.updatedb script has a typo
To: None <gnats-admin@NetBSD.ORG>
From: Lon Willett <lon%softt.uucp@math.utah.edu>
List: netbsd-bugs
Date: 02/14/1995 18:20:06
>Number:         798
>Category:       misc
>Synopsis:       The "locate.updatedb" script has a fatal typo; fix included
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people (Misc Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 14 18:20:04 1995
>Originator:     Lon Willett
>Organization:
>Release:        NetBSD-current 14 Feb 95
>Environment:

System: NetBSD hilly 1.0A NetBSD 1.0A (HILLY) #106: Mon Feb 13 16:14:32 MST 1995 lon@hilly:/usr/src/sys/arch/i386/compile/HILLY i386

>Description:

	Somebody spaced out on csh vs sh scripting.  See the patch.

	NB: when this script is run by the /etc/weekly script, stderr
	is redirected to /dev/null, so the error is not apparent in
	the logs.

>How-To-Repeat:

	Try running /usr/libexec/locate.updatedb by hand.

>Fix:

--- usr/src/usr.bin/locate/locate/updatedb.csh.orig	Thu Dec 22 05:35:20 1994
+++ usr/src/usr.bin/locate/locate/updatedb.csh	Sat Feb 11 04:40:56 1995
@@ -42,7 +42,7 @@
 set SRCHPATHS = "/"			# directories to be put in the database
 set LIBDIR = /usr/libexec		# for subprograms
 					# for temp files
-if (! $?TMPDIR) setenv TMPDIR = /var/tmp
+if (! $?TMPDIR) setenv TMPDIR /var/tmp
 set FCODES = /var/db/locate.database	# the database
 
 set path = ( /bin /usr/bin )

>Audit-Trail:
>Unformatted: