hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From omal...@apache.org
Subject svn commit: r1077702 - /hadoop/common/branches/branch-0.20-security-patches/src/mapred/org/apache/hadoop/filecache/TrackerDistributedCacheManager.java
Date Fri, 04 Mar 2011 04:46:09 GMT
Author: omalley
Date: Fri Mar  4 04:46:08 2011
New Revision: 1077702

URL: http://svn.apache.org/viewvc?rev=1077702&view=rev
Log:
commit 80bbabd85ae472bd8eeb2d8d56788265159210e5
Author: Owen O'Malley <omalley@apache.org>
Date:   Sat Sep 18 22:20:35 2010 -0700

    make cache archives not world writable

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

Modified: hadoop/common/branches/branch-0.20-security-patches/src/mapred/org/apache/hadoop/filecache/TrackerDistributedCacheManager.java
URL: http://svn.apache.org/viewvc/hadoop/common/branches/branch-0.20-security-patches/src/mapred/org/apache/hadoop/filecache/TrackerDistributedCacheManager.java?rev=1077702&r1=1077701&r2=1077702&view=diff
==============================================================================
--- hadoop/common/branches/branch-0.20-security-patches/src/mapred/org/apache/hadoop/filecache/TrackerDistributedCacheManager.java
(original)
+++ hadoop/common/branches/branch-0.20-security-patches/src/mapred/org/apache/hadoop/filecache/TrackerDistributedCacheManager.java
Fri Mar  4 04:46:08 2011
@@ -506,7 +506,10 @@ public class TrackerDistributedCacheMana
         // and copy the file into the dir as it is
       }
     }
-    // set proper permissions for the localized directory
+    // set proper permissions for the localized copy
+    if (isArchive) {
+      localFs.setPermission(parchive, permission);
+    }
     localFs.setPermission(destination, permission);
 
     LOG.info(String.format("Cached %s as %s",



Mime
View raw message