[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nmh-workers] tmp file cleanup
From: |
Lyndon Nerenberg |
Subject: |
Re: [Nmh-workers] tmp file cleanup |
Date: |
Sun, 19 Jan 2014 13:52:24 -0800 |
On Jan 19, 2014, at 9:30 AM, David Levine <address@hidden> wrote:
> * All nmh programs will put tmp files in the first non-null location
> of {MHTMPDIR, TMPDIR, TMP, MH Path directory}.
This should be $MHTMPDIR, $TMPDIR, "/tmp". (I was wrong earlier about
mkstemp() defaulting to /tmp – you have to specify the full path.)
I guess $TMP is a Windows thing? It shouldn't be used on UNIX systems.
> * If MHTMPDIR is not an absolute path, interpret it as relative to the
> MH Path directory.
This is a security breach waiting to happen. For tempfiles you should always
be specifying an absolute path. This isn't just an MH issue.
--lyndon
signature.asc
Description: Message signed with OpenPGP using GPGMail
- [Nmh-workers] tmp file cleanup, David Levine, 2014/01/19
- Re: [Nmh-workers] tmp file cleanup, David Levine, 2014/01/19
- Re: [Nmh-workers] tmp file cleanup, David Levine, 2014/01/19
- Re: [Nmh-workers] tmp file cleanup, David Levine, 2014/01/19
- Re: [Nmh-workers] tmp file cleanup, David Levine, 2014/01/19
- Re: [Nmh-workers] tmp file cleanup, David Levine, 2014/01/20
- Re: [Nmh-workers] tmp file cleanup, David Levine, 2014/01/26