jenkinsci/jenkins — pull request #458 by justinsb (2012-04-26 16:58:15+00:00)
Title: Don't try to chmod symlinks when unpacking tars

Fix for Jenkins 13280: https://issues.jenkins-ci.org/browse/JENKINS-13280

Symlinks don't have their own file modes; chmod-ing a symlink sets the mode on the link target. If the link target doesn't exist (which is very likely in a tar extract if the target is 'later') then this blows up.

Just skip chmod on symlinks; the target will presumably have its own chmod set when it is extracted.