Hardcoded TMPDIR - anywhere else?

DJ Delorie dj at redhat.com
Thu May 23 07:00:51 UTC 2013


>   ## Use $MOZ_TMPDIR if set. Otherwise use /var/tmp instead of /tmp
>   ## because of 1GB /tmp limit in Fedora 18 and later.
>
> It is insane to hardcode /var/tmp.

Considering the comment, they probably think it's insane to put /tmp
in RAM, and since web browsers are often used to download huge files
and /tmp is the default non-hardcoded dir, they're trying to avoid
users complaining about failed downloads.

Note that this is one of the cases the opponents of the tmp-in-tmpfs
change predicted.  No surprise that they want to avoid bug reports due
to unexpected (to the user) behavior, and in fact, this is what the
tmp-in-tmpfs proponents suggested (using /var/tmp) for such cases
anyway.

For reference, see the very long debate about tmp-in-tmpfs.


More information about the devel mailing list