@@ -1582,21 +1594,7 @@ public final class FilePath implements Serializable {
f.setLastModified(te.getModTime().getTime());
intmode=te.getMode()&0777;
if(mode!=0&&!Functions.isWindows())// be defensive
try{
LIBC.chmod(f.getPath(),mode);
}catch(NoClassDefFoundErrore){
// be defensive: see http://hudson.361315.n4.nabble.com/3-0-6-Site-copy-problem-hudson-util-IOException2-java-lang-NoClassDefFoundError-Could-not-initializey-td382337.html
}catch(UnsatisfiedLinkErrorule){
// HUDSON-8155: use Ant's chmod task on non-GNU C systems
if(chmodTask==null){
LOGGER.warning("GNU C Library not available: Using Ant's chmod task instead.");