--- Akim Demaille <[EMAIL PROTECTED]> wrote:
> >>>>> "Earnie" == Earnie Boyd <[EMAIL PROTECTED]> writes:
>
> Earnie> --- Akim Demaille <[EMAIL PROTECTED]> wrote: -8<-
> >> As for mkdir -m, it seems to me that
> >>
> >> (umask 700 && mkdir /tmp/foo)
>
> Grmph, 077.
>
> >>
> >> is just fine.
> >>
> Earnie> -8<-
>
> Earnie> Why use /tmp at all? Since autoconf is for portibility you
> Earnie> can't really assume that /tmp exists. Why not simply create a
> Earnie> temporary directory in the current working directory? IMO
> Earnie> this would handle any security issues as well as any race
> Earnie> issues.
>
> Let it be for speed issues, I'm in favor of /tmp via TMPDIR. This
> should be portable enough, and testing it beforehand is OK.
>
> Now, if experts consider this is a security hole...
You missed the point; /tmp isn't portable, it doesn't always exist (E.G.: MSDOS
or WINDOWS). At least with TMPDIR I can set it to be whatever I want it to be.
If you want speed do mkdir ./foo instead of mkdir -m /tmp/foo.
=====
---
Earnie Boyd: <mailto:[EMAIL PROTECTED]>
__Cygwin: POSIX on Windows__
Cygwin Newbies: <http://www.freeyellow.com/members5/gw32/index.html>
__Minimalist GNU for Windows__
Mingw32 List: <http://www.egroups.com/group/mingw32/>
Mingw Home: <http://www.mingw.org/>
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com