hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s..@apache.org
Subject svn commit: r1065901 - in /hadoop/common/trunk: CHANGES.txt src/java/org/apache/hadoop/fs/RawLocalFileSystem.java
Date Tue, 01 Feb 2011 03:02:06 GMT
Author: shv
Date: Tue Feb  1 03:02:06 2011
New Revision: 1065901

URL: http://svn.apache.org/viewvc?rev=1065901&view=rev
Log:
HADOOP-7126. Fix file permission setting for RawLocalFileSystem on Windows. Contributed by
Po Cheung.

Modified:
    hadoop/common/trunk/CHANGES.txt
    hadoop/common/trunk/src/java/org/apache/hadoop/fs/RawLocalFileSystem.java

Modified: hadoop/common/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/CHANGES.txt?rev=1065901&r1=1065900&r2=1065901&view=diff
==============================================================================
--- hadoop/common/trunk/CHANGES.txt (original)
+++ hadoop/common/trunk/CHANGES.txt Tue Feb  1 03:02:06 2011
@@ -468,6 +468,9 @@ Release 0.22.0 - Unreleased
 
     HADOOP-7122. Fix thread leak when shell commands time out. (todd)
 
+    HADOOP-7126. Fix file permission setting for RawLocalFileSystem on Windows.
+    (Po Cheung via shv)
+
 Release 0.21.1 - Unreleased
 
   IMPROVEMENTS

Modified: hadoop/common/trunk/src/java/org/apache/hadoop/fs/RawLocalFileSystem.java
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/src/java/org/apache/hadoop/fs/RawLocalFileSystem.java?rev=1065901&r1=1065900&r2=1065901&view=diff
==============================================================================
--- hadoop/common/trunk/src/java/org/apache/hadoop/fs/RawLocalFileSystem.java (original)
+++ hadoop/common/trunk/src/java/org/apache/hadoop/fs/RawLocalFileSystem.java Tue Feb  1 03:02:06
2011
@@ -567,7 +567,7 @@ public class RawLocalFileSystem extends 
   private static String execCommand(File f, String... cmd) throws IOException {
     String[] args = new String[cmd.length + 1];
     System.arraycopy(cmd, 0, args, 0, cmd.length);
-    args[cmd.length] = f.getCanonicalPath();
+    args[cmd.length] = FileUtil.makeShellPath(f, true);
     String output = Shell.execCommand(args);
     return output;
   }



Mime
View raw message