From 8b91ab6a615093824e6325bd94a6338a7af14d58 Mon Sep 17 00:00:00 2001 From: Wolfram Schneider Date: Sun, 8 Mar 1998 16:09:31 +0000 Subject: [PATCH] Change default temporary directory (TMPDIR) from /tmp to /var/tmp. Mosts users seems to have a larger /var/tmp partition than /tmp - IMHO silly but who cares? --- usr.bin/locate/locate/concatdb.sh | 6 +++--- usr.bin/locate/locate/locate.rc | 4 ++-- usr.bin/locate/locate/mklocatedb.sh | 6 +++--- usr.bin/locate/locate/updatedb.sh | 6 +++--- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/usr.bin/locate/locate/concatdb.sh b/usr.bin/locate/locate/concatdb.sh index 66f2cfbb3f8..86251a33ca7 100644 --- a/usr.bin/locate/locate/concatdb.sh +++ b/usr.bin/locate/locate/concatdb.sh @@ -30,7 +30,7 @@ # # Sequence of databases is important. # -# $Id: concatdb.sh,v 1.6 1997/12/13 18:18:07 sef Exp $ +# $Id: concatdb.sh,v 1.7 1998/03/08 15:28:32 wosch Exp $ # The directory containing locate subprograms : ${LIBEXECDIR:=/usr/libexec}; export LIBEXECDIR @@ -39,8 +39,8 @@ PATH=$LIBEXECDIR:/bin:/usr/bin:$PATH; export PATH umask 077 # protect temp files -: ${TMPDIR:=/tmp}; export TMPDIR; -test -d "$TMPDIR" || TMPDIR=/tmp +: ${TMPDIR:=/var/tmp}; export TMPDIR; +test -d "$TMPDIR" || TMPDIR=/var/tmp # utilities to built locate database : ${bigram:=locate.bigram} diff --git a/usr.bin/locate/locate/locate.rc b/usr.bin/locate/locate/locate.rc index 2d3699086a4..28718c0a97b 100644 --- a/usr.bin/locate/locate/locate.rc +++ b/usr.bin/locate/locate/locate.rc @@ -1,13 +1,13 @@ # # /etc/locate.rc - command script for updatedb(8) # -# $Id: locate.rc,v 1.4 1997/02/22 19:55:48 peter Exp $ +# $Id: locate.rc,v 1.5 1998/01/01 02:34:14 alex Exp $ # # All commented values are the defaults # # temp directory -#TMPDIR="/tmp" +#TMPDIR="/var/tmp" # the actual database #FCODES="/var/db/locate.database" diff --git a/usr.bin/locate/locate/mklocatedb.sh b/usr.bin/locate/locate/mklocatedb.sh index 30839a2ba6a..1268a06a69c 100644 --- a/usr.bin/locate/locate/mklocatedb.sh +++ b/usr.bin/locate/locate/mklocatedb.sh @@ -28,7 +28,7 @@ # # usage: mklocatedb [-presort] < filelist > database # -# $Id: mklocatedb.sh,v 1.5 1997/12/13 18:18:10 sef Exp $ +# $Id: mklocatedb.sh,v 1.6 1998/03/08 15:28:35 wosch Exp $ # The directory containing locate subprograms @@ -38,8 +38,8 @@ PATH=$LIBEXECDIR:/bin:/usr/bin:$PATH; export PATH umask 077 # protect temp files -: ${TMPDIR:=/tmp}; export TMPDIR -test -d "$TMPDIR" || TMPDIR=/tmp +: ${TMPDIR:=/var/tmp}; export TMPDIR +test -d "$TMPDIR" || TMPDIR=/var/tmp # utilities to built locate database : ${bigram:=locate.bigram} diff --git a/usr.bin/locate/locate/updatedb.sh b/usr.bin/locate/locate/updatedb.sh index 79d5538ddd0..38848d7a92c 100644 --- a/usr.bin/locate/locate/updatedb.sh +++ b/usr.bin/locate/locate/updatedb.sh @@ -26,7 +26,7 @@ # # updatedb - update locate database for local mounted filesystems # -# $Id: updatedb.sh,v 1.8 1997/12/13 18:18:12 sef Exp $ +# $Id: updatedb.sh,v 1.9 1998/03/08 15:28:37 wosch Exp $ LOCATE_CONFIG="/etc/locate.rc" if [ -f "$LOCATE_CONFIG" -a -r "$LOCATE_CONFIG" ]; then @@ -35,8 +35,8 @@ fi # The directory containing locate subprograms : ${LIBEXECDIR:=/usr/libexec}; export LIBEXECDIR -: ${TMPDIR:=/tmp}; export TMPDIR -test -d "$TMPDIR" || TMPDIR=/tmp +: ${TMPDIR:=/var/tmp}; export TMPDIR +test -d "$TMPDIR" || TMPDIR=/var/tmp PATH=$LIBEXECDIR:/bin:/usr/bin:$PATH; export PATH