Kaynağa Gözat

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)
+


git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.20-security-patches@1077741 13f79535-47bb-0310-9956-ffa450edef68

Owen O'Malley 14 yıl önce
ebeveyn
işleme
f098cd1035

+ 1 - 0
src/mapred/org/apache/hadoop/mapred/JobLocalizer.java

@@ -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);
     }
   }