Browse Source

HADOOP-13315. FileContext#umask is not initialized properly. (John Zhuge via lei)

(cherry picked from commit a290a98b6ab2424ae9b7faab0ce9496d09ca46f3)
Lei Xu 9 years ago
parent
commit
82c3c66dcb

+ 1 - 1
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/FileContext.java

@@ -238,7 +238,7 @@ public class FileContext {
   private FileContext(final AbstractFileSystem defFs,
     final FsPermission theUmask, final Configuration aConf) {
     defaultFS = defFs;
-    umask = FsPermission.getUMask(aConf);
+    umask = theUmask;
     conf = aConf;
     tracer = FsTracer.get(aConf);
     try {