Copy link
@vdanen

vdanen Jan 11, 2014

this is vulnerable to a race condition; don't use os.getuid() here as your end result is neither safe nor predictable; in this case it will return /tmp/_jinja2-cache-$uid or, if we're lucky and the user has $TMPDIR set in their environment, we might get ~/tmp/_jinja2-cache-$uid, but there are no guarantees there.