Subject: Re: Per-user temp storage
To: Christoph Badura <>
From: Luke Mewburn <>
List: tech-security
Date: 02/25/1997 16:32:17
[moving thread to tech-security; that's what it's for]

Christoph Badura writes:
> explorer@flame.ORG writes:
> >I was thinking of modifying the memory filesystem to do some magic
> >based on the user using /tmp.
> Why don't you simply set TMPDIR from /etc/profile and /etc/csh.login?
> Or hack mkstemp etc. to the right thing with TMPDIR=/tmp/%s ?

We can suggest create another function, which effectively builds up a
temporary name suitable for passing to mkstemp() that takes into
account TMPDIR (with full error checking). Or we add a flag to
mkstemp() to do this, or something.

There should be a standard way for programs to say "let me use $TMPDIR"
if necessary, rather than reinventing the wheel in all these programs.