summaryrefslogtreecommitdiffstats
path: root/kinit/lnusertemp.c
diff options
context:
space:
mode:
Diffstat (limited to 'kinit/lnusertemp.c')
-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";