TMPDIR patch for Configure

B. James Phillippe (bryan@Terran.ORG)
Tue, 17 Mar 1998 15:51:29 -0800 (PST)


Hello,

This is a minor nitpick, but with all the /tmp fuss being made in
the security lists, something like this might be useful, especially since a
lot of people build kernels as root.

--- scripts/Configure.orig Tue Mar 17 15:37:21 1998
+++ scripts/Configure Tue Mar 17 15:48:56 1998
@@ -466,6 +466,7 @@

CONFIG=.tmpconfig
CONFIG_H=.tmpconfig.h
+TMPDIR=${TMPDIR:-/tmp}
trap "rm -f $CONFIG $CONFIG_H ; exit 1" 1 2

#
@@ -501,9 +502,9 @@
echo "# Using defaults found in" $DEFAULTS
echo "#"
. $DEFAULTS
- sed -e 's/# \(.*\) is not.*/\1=n/' < $DEFAULTS > /tmp/conf.$$
- . /tmp/conf.$$
- rm /tmp/conf.$$
+ sed -e 's/# \(.*\) is not.*/\1=n/' < $DEFAULTS > $TMPDIR/conf.$$
+ . $TMPDIR/conf.$$
+ rm $TMPDIR/conf.$$
else
echo "#"
echo "# No defaults found"

cheers,
-bp

--
B. James Phillippe <bryan@terran.org>
Linux Software Engineer, WGT Inc.
http://earth.terran.org/~bryan

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu