Comment 11 for bug 1159749

Revision history for this message
Kai Engert (kaie) wrote :

I think you should consider to take the reordering I've proposed in the patch, because you have multiple scenarios in get_tempdirs where you fall back to the first entry.

If you want to allow the environment to override the temp directory, you cannot rely on it to be set, because by default that function will return /tmp - you would have to implement your own strategy to check the environment. Or, if the function uses /tmp/, you shouldn't use it, and use /var/tmp