The tweaks we made to the extraction process in bug 526598 made us more forceful about ensuring the file permissions were correct but this has the side effect of removing any executable bit from the file permissions. We need to make sure at least the read/write permissions are there preserving the executable permissions.
Created attachment 423116 [details] [diff] [review] patch rev 1 Took a while to get a unit test that did a decent check on all platforms but I think this is it. The test zip file includes a file called "binary" that was marked executable before compressing, it should extract as executable as well. The fix just ensures we apply at least the file access bits we need at a minimum and allows any executable bits to pass through as well.
Comment on attachment 423116 [details] [diff] [review] patch rev 1 Might be good to expand the comment to state that our code doesn't understand NTFS file permissions. Hopefully one day we will get that implemented.
Landed on trunk: http://hg.mozilla.org/mozilla-central/rev/bee5caea0941, will look for branch approval shortly.
Backed this out while I figure out what is up with the test failures.
Relanded with an additional line of logging to try to narrow down where the problem is. The logging shouldn't affect most users and I'll remove it after a short period of time. http://hg.mozilla.org/mozilla-central/rev/5ad17deecfe0
Where are we at with this?
(In reply to comment #6) > Where are we at with this? We have an intermittent test failure I can neither reproduce or understand which leaves me unable to be sure of how safe this is to take on branch. It appears that the failure hasn't happened in over a month though.
Ready for a branch landing yet?
Comment on attachment 423116 [details] [diff] [review] patch rev 1 Yeah lets take this on branch, the intermittent failures appear to have gone away, I can't see any way that they could have been a code problem.
Comment on attachment 423116 [details] [diff] [review] patch rev 1 Approved for 126.96.36.199, a=dveditz for release-drivers
Landed on branch: http://hg.mozilla.org/releases/mozilla-1.9.2/rev/49004ea8ba6f
Created attachment 455550 [details] Test extension the test extension attached doesnt seem to verify the fix against 188.8.131.52. reopening. It does however, work against trunk nightly. Tested against on Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:184.108.40.206pre) Gecko/20100701 Namoroka/3.6.7pre
oops. this should status = verified fixed on trunk, and then i reset flags of blocking1.9.2 =? and status1.9.2 = ?. Please correct if i missed something.
and verified fix on Minefield trunk: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:2.0b2pre) Gecko/20100701 Minefield/4.0b2pre.
Comment on attachment 423116 [details] [diff] [review] patch rev 1 a-LegNeato for 220.127.116.11.
Landed on the branch: http://hg.mozilla.org/releases/mozilla-1.9.2/rev/df760e6d4ddc Looks like the right one this time too!