瀏覽代碼

Merge -r 541753:541754 from trunk to 0.13 branch. Fixes: HADOOP-1435.

git-svn-id: https://svn.apache.org/repos/asf/lucene/hadoop/branches/branch-0.13@541755 13f79535-47bb-0310-9956-ffa450edef68
Doug Cutting 18 年之前
父節點
當前提交
bc7bba2165
共有 2 個文件被更改,包括 5 次插入1 次删除
  1. 4 0
      CHANGES.txt
  2. 1 1
      src/java/org/apache/hadoop/fs/FileSystem.java

+ 4 - 0
CHANGES.txt

@@ -422,6 +422,10 @@ Branch 0.13 (unreleased changes)
 126. HADOOP-1427.  Fix a typo that caused GzipCodec to incorrectly use
      a very small input buffer.  (Espen Amble Kolstad via cutting)
 
+127. HADOOP-1435.  Fix globbing code to no longer use the empty string
+     to indicate the default directory, per HADOOP-1386.
+     (Hairong Kuang via cutting)
+
 
 Release 0.12.3 - 2007-04-06
 

+ 1 - 1
src/java/org/apache/hadoop/fs/FileSystem.java

@@ -583,7 +583,7 @@ public abstract class FileSystem extends Configured {
       parents[0] = new Path(Path.SEPARATOR);
       level = 1;
     } else {
-      parents[0] = new Path("");
+      parents[0] = new Path(Path.CUR_DIR);
     }
       
     Path[] results = globPathsLevel(parents, components, level, filter);