hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tomwh...@apache.org
Subject svn commit: r1104374 - in /hadoop/common/trunk: CHANGES.txt src/java/org/apache/hadoop/fs/permission/FsPermission.java src/test/core/org/apache/hadoop/fs/permission/TestFsPermission.java
Date Tue, 17 May 2011 16:10:41 GMT
Author: tomwhite
Date: Tue May 17 16:10:41 2011
New Revision: 1104374

URL: http://svn.apache.org/viewvc?rev=1104374&view=rev
Log:
HADOOP-7296. The FsPermission(FsPermission) constructor does not use the sticky bit. Contributed
by Siddharth Seth

Modified:
    hadoop/common/trunk/CHANGES.txt
    hadoop/common/trunk/src/java/org/apache/hadoop/fs/permission/FsPermission.java
    hadoop/common/trunk/src/test/core/org/apache/hadoop/fs/permission/TestFsPermission.java

Modified: hadoop/common/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/CHANGES.txt?rev=1104374&r1=1104373&r2=1104374&view=diff
==============================================================================
--- hadoop/common/trunk/CHANGES.txt (original)
+++ hadoop/common/trunk/CHANGES.txt Tue May 17 16:10:41 2011
@@ -693,6 +693,9 @@ Release 0.22.0 - Unreleased
     HADOOP-7068. Ivy resolve force mode should be turned off by default.
     (Luke Lu via tomwhite)
 
+    HADOOP-7296. The FsPermission(FsPermission) constructor does not use the
+    sticky bit. (Siddharth Seth via tomwhite)
+
 Release 0.21.1 - Unreleased
 
   IMPROVEMENTS

Modified: hadoop/common/trunk/src/java/org/apache/hadoop/fs/permission/FsPermission.java
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/src/java/org/apache/hadoop/fs/permission/FsPermission.java?rev=1104374&r1=1104373&r2=1104374&view=diff
==============================================================================
--- hadoop/common/trunk/src/java/org/apache/hadoop/fs/permission/FsPermission.java (original)
+++ hadoop/common/trunk/src/java/org/apache/hadoop/fs/permission/FsPermission.java Tue May
17 16:10:41 2011
@@ -96,6 +96,7 @@ public class FsPermission implements Wri
     this.useraction = other.useraction;
     this.groupaction = other.groupaction;
     this.otheraction = other.otheraction;
+    this.stickyBit = other.stickyBit;
   }
   
   /**

Modified: hadoop/common/trunk/src/test/core/org/apache/hadoop/fs/permission/TestFsPermission.java
URL: http://svn.apache.org/viewvc/hadoop/common/trunk/src/test/core/org/apache/hadoop/fs/permission/TestFsPermission.java?rev=1104374&r1=1104373&r2=1104374&view=diff
==============================================================================
--- hadoop/common/trunk/src/test/core/org/apache/hadoop/fs/permission/TestFsPermission.java
(original)
+++ hadoop/common/trunk/src/test/core/org/apache/hadoop/fs/permission/TestFsPermission.java
Tue May 17 16:10:41 2011
@@ -66,6 +66,8 @@ public class TestFsPermission extends Te
           for(FsAction o : FsAction.values()) {
             FsPermission f = new FsPermission(u, g, o, sb);
             assertEquals(s, f.toShort());
+            FsPermission f2 = new FsPermission(f);
+            assertEquals(s, f2.toShort());
             s++;
           }
         }



Mime
View raw message