npm / fstream

Advanced FS Streaming for Node
ISC License
208 stars 43 forks source link

Fix bug that causes premature 'end' event #11

Closed dgreensp closed 11 years ago

dgreensp commented 11 years ago

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.

isaacs commented 11 years ago

Landed on 0.1.20, included in npm 1.1.70. Thanks!