composer/composer — pull request #282 by simensen (2012-02-09 18:27:55+00:00)
Title: Change permission of bin links if they exist and are already links

I was noticing that the execute permissions were not sticking when force reinstalling ( `rm -rf vendor composer.lock` ) a projects that had overridden `bin-dir` configuration setting.

Turns out first `composer install` created the link and made the link's target executable. On future runs of install or update, the link already exists so the whole process was skipped. In the case that a fresh zipball (that does not retain file permissions) had been extracted the target of the link was no longer executable.

I'm not sure if `is_link` is appropriate for Windows, but I'm hoping it will just always return false? Open to suggestions for tweaking this further if needed.