mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-20 00:33:57 +00:00
In the case of ACL_OTHER and undefined ACL entry id's, set
ae_id to ACL_UNDEFINED_ID instead of 0. Reviewed by: rwatson
This commit is contained in:
parent
c2d7a52a1b
commit
dbb14f9874
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=82769
|
@ -419,11 +419,11 @@ acl_posix1e_mode_to_entry(acl_tag_t tag, uid_t uid, gid_t gid, mode_t mode)
|
|||
break;
|
||||
|
||||
case ACL_OTHER:
|
||||
acl_entry.ae_id = 0;
|
||||
acl_entry.ae_id = ACL_UNDEFINED_ID;
|
||||
break;
|
||||
|
||||
default:
|
||||
acl_entry.ae_id = 0;
|
||||
acl_entry.ae_id = ACL_UNDEFINED_ID;
|
||||
printf("acl_posix1e_mode_to_entry: invalid tag (%d)\n", tag);
|
||||
}
|
||||
|
||||
|
|
|
@ -419,11 +419,11 @@ acl_posix1e_mode_to_entry(acl_tag_t tag, uid_t uid, gid_t gid, mode_t mode)
|
|||
break;
|
||||
|
||||
case ACL_OTHER:
|
||||
acl_entry.ae_id = 0;
|
||||
acl_entry.ae_id = ACL_UNDEFINED_ID;
|
||||
break;
|
||||
|
||||
default:
|
||||
acl_entry.ae_id = 0;
|
||||
acl_entry.ae_id = ACL_UNDEFINED_ID;
|
||||
printf("acl_posix1e_mode_to_entry: invalid tag (%d)\n", tag);
|
||||
}
|
||||
|
||||
|
|
|
@ -419,11 +419,11 @@ acl_posix1e_mode_to_entry(acl_tag_t tag, uid_t uid, gid_t gid, mode_t mode)
|
|||
break;
|
||||
|
||||
case ACL_OTHER:
|
||||
acl_entry.ae_id = 0;
|
||||
acl_entry.ae_id = ACL_UNDEFINED_ID;
|
||||
break;
|
||||
|
||||
default:
|
||||
acl_entry.ae_id = 0;
|
||||
acl_entry.ae_id = ACL_UNDEFINED_ID;
|
||||
printf("acl_posix1e_mode_to_entry: invalid tag (%d)\n", tag);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue