joyent/smartos-live — pull request #45 by richlowe (2012-01-14 23:51:35+00:00)
Title: builder: actually set the permission of directories

Directories were being left at 0755, which is right 99% of the time, so
seems to have escaped. It's wrong, however, for `/tmp`, and `/var/tmp`.

Add a 5th pass to `builder` (lest a read-only directory need contents),
and set directories permissions.

This is not as graceful as it could -- or should -- be, but then again neither is `builder`.

I've tested this lightly, to the extent that I needed a valid `/var/tmp` in the GZ and didn't have one, and now do, and I spot-checked `/tmp` also, nothing else.