瀏覽代碼

HADOOP-1435. Fix globbing code to no longer use the empty string to indicate the default directory, per HADOOP-1386. Contributed by Hairong.

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

+ 4 - 0
CHANGES.txt

@@ -491,6 +491,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

@@ -558,7 +558,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);