From: David Levine Date: Sun, 26 Jan 2014 17:57:29 +0000 (-0600) Subject: No longer look at TMP environment variable for temporary file storage. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/d046c8f0992fddcd69f2172a6607a14dec3b1251?ds=inline;hp=--cc No longer look at TMP environment variable for temporary file storage. --- d046c8f0992fddcd69f2172a6607a14dec3b1251 diff --git a/docs/pending-release-notes b/docs/pending-release-notes index b2d2a82a..ca1bff37 100644 --- a/docs/pending-release-notes +++ b/docs/pending-release-notes @@ -117,6 +117,10 @@ OBSOLETE FEATURES - The environment variable MM_CHARSET to indicate the native character set is no longer supported. The native character set will be solely determined by the locale settings. +- Temporary files are stored in the first non-null location of + {MHTMPDIR environment variable, TMPDIR environment variable, MH Path}. + They are no longer be stored in the location specified by the TMP + environment variable. ------------------- DEPRECATED FEATURES diff --git a/sbr/m_mktemp.c b/sbr/m_mktemp.c index ac05306a..a9dab5a2 100644 --- a/sbr/m_mktemp.c +++ b/sbr/m_mktemp.c @@ -32,7 +32,6 @@ static void register_for_removal(const char *); * * MHTMPDIR envvar * TMPDIR envvar - * TMP envvar * User's mail directory. * * NOTE: One will probably use m_mktemp2() instead of this function. @@ -144,9 +143,6 @@ get_temp_dir() tmpdir = getenv("TMPDIR"); if (tmpdir != NULL && *tmpdir != '\0') return tmpdir; - - tmpdir = getenv("TMP"); - if (tmpdir != NULL && *tmpdir != '\0') return tmpdir; } return m_maildir(""); }