isaacs/fstream — pull request #11 by dgreensp (2012-12-18 03:48:02+00:00)
Title: Fix bug that causes premature 'end' event

Since endChmod may call its callback directly, todo may hit 1 and then
0 without this change. This bug was causing tar extraction by node-tar
to emit 'end' before the final chown and utimes.