Subject: bin/9535: locate's updatedb script uses /var/tmp for temporary files
To: None <>
From: None <Thilo.Manske@HEH.Uni-Oldenburg.DE>
List: netbsd-bugs
Date: 03/04/2000 06:15:34
>Number:         9535
>Category:       bin
>Synopsis:       locate's updatedb script uses /var/tmp instead of /tmp
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sat Mar  4 06:15:00 2000
>Originator:     Thilo Manske
Dies ist Thilos Unix Signature! Viel Spass damit.
>Release:        All versions since Oct 1995
System: NetBSD WintelKiller 1.4U NetBSD 1.4U (WintelKiller) #202: Fri Mar 3 04:03:10 MET 2000 thilo@WintelKiller:/usr/src/sys/arch/i386/compile/WintelKiller i386

The /usr/libexec/updatedb script (invoked by /etc/weekly) uses
/var/tmp as default place for its temporary files. IMHO /tmp is a 
better place (see hier(7)).

Have a small /var partition containing /var/tmp and be annoyed by failing
weekly runs :-)
--- updatedb.csh.orig   Sat Oct 14 04:14:26 1995
+++ updatedb.csh        Sat Mar  4 14:59:36 2000
@@ -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 /tmp
 set FCODES = /var/db/locate.database   # the database
 set path = ( /bin /usr/bin )