summaryrefslogtreecommitdiffstats
path: root/kinit
diff options
context:
space:
mode:
authorDarrell Anderson <humanreadable@yahoo.com>2012-03-07 17:14:08 -0600
committerDarrell Anderson <humanreadable@yahoo.com>2012-03-07 17:14:08 -0600
commitdb9522797ab0139b316bb74bbbc79341a4eacfbf (patch)
treee8326c42a4cb0866a50a9ce1db9906bb085bfe2c /kinit
parent000bad21ebdda62f24f96a22fee60ca7a6dc0c9e (diff)
downloadtdelibs-db9522797ab0139b316bb74bbbc79341a4eacfbf.tar.gz
tdelibs-db9522797ab0139b316bb74bbbc79341a4eacfbf.zip
Add $TMP and $TEMP to environment variable checks.
Diffstat (limited to 'kinit')
-rw-r--r--kinit/lnusertemp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/kinit/lnusertemp.c b/kinit/lnusertemp.c
index b53af5dbe..fd10ce1f4 100644
--- a/kinit/lnusertemp.c
+++ b/kinit/lnusertemp.c
@@ -248,6 +248,10 @@ int main(int argc, char **argv)
tmp = getenv("TDETMP");
if (!tmp || !tmp[0])
tmp = getenv("TMPDIR");
+ if (!tmp || !tmp[0])
+ tmp = getenv("TEMP");
+ if (!tmp || !tmp[0])
+ tmp = getenv("TMP");
if (!tmp || !tmp[0])
tmp = "/tmp";