diff options
author | Darrell Anderson <humanreadable@yahoo.com> | 2012-03-07 17:14:08 -0600 |
---|---|---|
committer | Darrell Anderson <humanreadable@yahoo.com> | 2012-03-07 17:14:08 -0600 |
commit | db9522797ab0139b316bb74bbbc79341a4eacfbf (patch) | |
tree | e8326c42a4cb0866a50a9ce1db9906bb085bfe2c /kinit | |
parent | 000bad21ebdda62f24f96a22fee60ca7a6dc0c9e (diff) | |
download | tdelibs-db9522797ab0139b316bb74bbbc79341a4eacfbf.tar.gz tdelibs-db9522797ab0139b316bb74bbbc79341a4eacfbf.zip |
Add $TMP and $TEMP to environment variable checks.
Diffstat (limited to 'kinit')
-rw-r--r-- | kinit/lnusertemp.c | 4 |
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"; |