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:
Chris D. Faulhaber 2001-09-01 23:16:02 +00:00
parent c2d7a52a1b
commit dbb14f9874
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=82769
3 changed files with 6 additions and 6 deletions

View file

@ -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);
}

View file

@ -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);
}

View file

@ -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);
}