hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From omal...@apache.org
Subject svn commit: r1077741 - /hadoop/common/branches/branch-0.20-security-patches/src/mapred/org/apache/hadoop/mapred/JobLocalizer.java
Date Fri, 04 Mar 2011 04:50:27 GMT
Author: omalley
Date: Fri Mar  4 04:50:26 2011
New Revision: 1077741

URL: http://svn.apache.org/viewvc?rev=1077741&view=rev
Log:
commit 8a0057f471c8128663732ff5fcdef1e7d3c57d4d
Author: Devaraj Das <ddas@yahoo-inc.com>
Date:   Mon Oct 25 15:32:01 2010 -0700

     Makes an explicit call to "chmod -R" after job.jar is unarchived. The call makes files
passed through -file option in Streaming executable.
    
    +++ b/YAHOO-CHANGES.txt
    +Release 0.20.201.5 - unreleased
    +
    +     Makes an explicit call to "chmod -R" after job.jar is
    +    unarchived. The call makes files passed through -file option in Streaming
    +    executable. (ddas)
    +

Modified:
    hadoop/common/branches/branch-0.20-security-patches/src/mapred/org/apache/hadoop/mapred/JobLocalizer.java

Modified: hadoop/common/branches/branch-0.20-security-patches/src/mapred/org/apache/hadoop/mapred/JobLocalizer.java
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.20-security-patches/src/mapred/org/apache/hadoop/mapred/JobLocalizer.java?rev=1077741&r1=1077740&r2=1077741&view=diff
==============================================================================
--- hadoop/common/branches/branch-0.20-security-patches/src/mapred/org/apache/hadoop/mapred/JobLocalizer.java
(original)
+++ hadoop/common/branches/branch-0.20-security-patches/src/mapred/org/apache/hadoop/mapred/JobLocalizer.java
Fri Mar  4 04:50:26 2011
@@ -276,6 +276,7 @@ public class JobLocalizer {
       // sub-directories, for e.g., lib/, classes/ are available on class-path
       RunJar.unJar(new File(localJarFile.toString()),
           new File(localJarFile.getParent().toString()));
+      FileUtil.chmod(localJarFile.getParent().toString(), "ugo+rx", true);
     }
   }
 



Mime
View raw message