Interesting, I don't have TMPDIR set here either.

We could certainly add this, although doing 3 checks with the current method
(if bla do x, else if bla1 do x, else if bla2 do x) would be IMHO poor
programming practice.

If we want to have 3 fallbacks, we could just support a list of fallback
directories. The main problem I see here is how to test if a socket can be
created in a directory without calling bind. If this could be done we could
insert all this logic in socket_getaddr and revert the patch on
awesome-client.c and luaa.c.

Any ideas?

Alex


On Wed, Mar 18, 2009 at 12:11 PM, Julien Danjou <[email protected]> wrote:

> At 1237392216 time_t, Uli wrote:
> > I found it on some man pages. E.g. tempnam(3) and mktemp(1) mention it. I
> don't
> > know if there is an official standard on this, but adding it wouldn't
> hurt if
> > awesome used /tmp as a fallback, right?
>
> Right.
>
> --
> Julien Danjou
> // ᐰ <[email protected]>   http://julien.danjou.info
> // 9A0D 5FD9 EB42 22F6 8974  C95C A462 B51E C2FE E5CD
> // Life is life. Lalalalala.
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
>
> iEYEARECAAYFAknBHUsACgkQpGK1HsL+5c1omQCg2Jf0QDzznZQcayIZPcpwZmET
> j+MAoKq8qXfdmXEUXwyS1od1a4dgEss2
> =QxSG
> -----END PGP SIGNATURE-----
>
>

Reply via email to