Revert "HADOOP-12718. Incorrect error message by fs -put local dir without permission. (John Zhuge via Yongjun Zhang)"
This reverts commit 97056c3355810a803f07baca89b89e2bf6bb7201. Conflicts: hadoop-common-project/hadoop-common/CHANGES.txt Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/5f6bc65b Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/5f6bc65b Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/5f6bc65b Branch: refs/heads/HDFS-1312 Commit: 5f6bc65bb31270f2b5dfdfd941a0568fc1f3337f Parents: 20f2799 Author: Chris Nauroth <cnaur...@apache.org> Authored: Fri Jun 17 23:50:22 2016 -0700 Committer: Chris Nauroth <cnaur...@apache.org> Committed: Fri Jun 17 23:50:22 2016 -0700 ---------------------------------------------------------------------- .../src/main/java/org/apache/hadoop/fs/RawLocalFileSystem.java | 5 ----- 1 file changed, 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/5f6bc65b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/RawLocalFileSystem.java ---------------------------------------------------------------------- diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/RawLocalFileSystem.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/RawLocalFileSystem.java index 8ef8392..cc41f4a 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/RawLocalFileSystem.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/RawLocalFileSystem.java @@ -33,7 +33,6 @@ import java.io.OutputStream; import java.io.FileDescriptor; import java.net.URI; import java.nio.ByteBuffer; -import java.nio.file.AccessDeniedException; import java.nio.file.Files; import java.nio.file.NoSuchFileException; import java.nio.file.attribute.BasicFileAttributes; @@ -472,10 +471,6 @@ public class RawLocalFileSystem extends FileSystem { if (localf.isDirectory()) { String[] names = localf.list(); if (names == null) { - if (!localf.canRead()) { - throw new AccessDeniedException("cannot open directory " + f + - ": Permission denied"); - } return null; } results = new FileStatus[names.length]; --------------------------------------------------------------------- To unsubscribe, e-mail: common-commits-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-commits-h...@hadoop.apache.org