|
@@ -3369,11 +3369,13 @@ static __u16 ACL_to_cifs_posix(char *parm_data, const char *pACL,
|
|
|
return 0;
|
|
|
}
|
|
|
cifs_acl->version = cpu_to_le16(1);
|
|
|
- if (acl_type == ACL_TYPE_ACCESS)
|
|
|
+ if (acl_type == ACL_TYPE_ACCESS) {
|
|
|
cifs_acl->access_entry_count = cpu_to_le16(count);
|
|
|
- else if (acl_type == ACL_TYPE_DEFAULT)
|
|
|
+ cifs_acl->default_entry_count = __constant_cpu_to_le16(0xFFFF);
|
|
|
+ } else if (acl_type == ACL_TYPE_DEFAULT) {
|
|
|
cifs_acl->default_entry_count = cpu_to_le16(count);
|
|
|
- else {
|
|
|
+ cifs_acl->access_entry_count = __constant_cpu_to_le16(0xFFFF);
|
|
|
+ } else {
|
|
|
cifs_dbg(FYI, "unknown ACL type %d\n", acl_type);
|
|
|
return 0;
|
|
|
}
|