hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject svn commit: r1444978 - /hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/util/FSUtils.java
Date Mon, 11 Feb 2013 21:56:08 GMT
Author: tedyu
Date: Mon Feb 11 21:56:08 2013
New Revision: 1444978

URL: http://svn.apache.org/r1444978
Log:
HBASE-7814 Port HBASE-6963 'unable to run hbck on a secure cluster' to 0.94 (Sergey)


Modified:
    hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/util/FSUtils.java

Modified: hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/util/FSUtils.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/util/FSUtils.java?rev=1444978&r1=1444977&r2=1444978&view=diff
==============================================================================
--- hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/util/FSUtils.java (original)
+++ hbase/branches/0.94/src/main/java/org/apache/hadoop/hbase/util/FSUtils.java Mon Feb 11
21:56:08 2013
@@ -1200,7 +1200,7 @@ public abstract class FSUtils {
    */
   public static void checkAccess(UserGroupInformation ugi, FileStatus file,
       FsAction action) throws AccessControlException {
-    if (ugi.getUserName().equals(file.getOwner())) {
+    if (ugi.getShortUserName().equals(file.getOwner())) {
       if (file.getPermission().getUserAction().implies(action)) {
         return;
       }
@@ -1212,7 +1212,7 @@ public abstract class FSUtils {
       return;
     }
     throw new AccessControlException("Permission denied:" + " action=" + action
-        + " path=" + file.getPath() + " user=" + ugi.getUserName());
+        + " path=" + file.getPath() + " user=" + ugi.getShortUserName());
   }
 
   private static boolean contains(String[] groups, String user) {



Mime
View raw message