equal
deleted
inserted
replaced
96 for (AclEntry ace: acl) { |
96 for (AclEntry ace: acl) { |
97 int flags = 0; |
97 int flags = 0; |
98 |
98 |
99 // map UserPrincipal to uid and flags |
99 // map UserPrincipal to uid and flags |
100 UserPrincipal who = ace.principal(); |
100 UserPrincipal who = ace.principal(); |
101 if (!(who instanceof UnixUserPrincipals)) |
101 if (!(who instanceof UnixUserPrincipals.User)) |
102 throw new ProviderMismatchException(); |
102 throw new ProviderMismatchException(); |
103 UnixUserPrincipals.User user = (UnixUserPrincipals.User)who; |
103 UnixUserPrincipals.User user = (UnixUserPrincipals.User)who; |
104 int uid; |
104 int uid; |
105 if (user.isSpecial()) { |
105 if (user.isSpecial()) { |
106 uid = -1; |
106 uid = -1; |