mozilla-b2g/gonk-misc — pull request #20 by cgjones (2012-08-23 07:07:38+00:00)
Title: Make sure TMPDIR is created and 777.

CC @doublec

The gecko media cache wants to create cache files in TmpD, which is /data/local/tmp. However, it doesn't have permission to do that. This patch ensure TmpD is created and is 777 when b2g is launched.

We should consider destroying /data/local/tmp on startup, because otherwise I don't think it will ever be cleaned. But that's work for another bug.

@michaelwu can you take a look? Thanks.