HADOOP-7296. The FsPermission(FsPermission) constructor does not use the sticky bit. Contributed by Siddharth Seth

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1104374 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Thomas White 2011-05-17 16:10:41 +00:00
parent af8be47f26
commit 2e6063b006
3 changed files with 6 additions and 0 deletions

View File

@ -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

View File

@ -96,6 +96,7 @@ public class FsPermission implements Writable {
this.useraction = other.useraction;
this.groupaction = other.groupaction;
this.otheraction = other.otheraction;
this.stickyBit = other.stickyBit;
}
/**

View File

@ -66,6 +66,8 @@ public class TestFsPermission extends TestCase {
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++;
}
}