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:
parent
af8be47f26
commit
2e6063b006
@ -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
|
||||
|
@ -96,6 +96,7 @@ public FsPermission(FsPermission other) {
|
||||
this.useraction = other.useraction;
|
||||
this.groupaction = other.groupaction;
|
||||
this.otheraction = other.otheraction;
|
||||
this.stickyBit = other.stickyBit;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -66,6 +66,8 @@ public void testConvertingPermissions() {
|
||||
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++;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user