From db9522797ab0139b316bb74bbbc79341a4eacfbf Mon Sep 17 00:00:00 2001 From: Darrell Anderson Date: Wed, 7 Mar 2012 17:14:08 -0600 Subject: [PATCH] Add $TMP and $TEMP to environment variable checks. --- kinit/lnusertemp.c | 4 ++++ 1 file changed, 4 insertions(+) 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";