Style: Remove trailing whitespace.
This commit is contained in:
parent
58e279db02
commit
e0fdd85ff7
@ -80,7 +80,7 @@ _acl_differs(const acl_t a, const acl_t b)
|
||||
|
||||
return (0);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* _posix1e_acl_entry_compare -- compare two acl_entry structures to
|
||||
* determine the order they should appear in. Used by _posix1e_acl_sort to
|
||||
@ -164,7 +164,7 @@ _posix1e_acl(acl_t acl, acl_type_t type)
|
||||
* from code in sys/kern/kern_acl.c, and if changes are made in one, they
|
||||
* should be made in the other also. This copy of acl_check is made
|
||||
* available * in userland for the benefit of processes wanting to check ACLs
|
||||
* for validity before submitting them to the kernel, or for performing
|
||||
* for validity before submitting them to the kernel, or for performing
|
||||
* in userland file system checking. Needless to say, the kernel makes
|
||||
* the real checks on calls to get/setacl.
|
||||
*
|
||||
@ -203,7 +203,7 @@ _posix1e_acl_check(acl_t acl)
|
||||
stage = ACL_USER;
|
||||
count_user_obj++;
|
||||
break;
|
||||
|
||||
|
||||
case ACL_USER:
|
||||
/* printf("_posix1e_acl_check: %d: ACL_USER\n", i); */
|
||||
if (stage > ACL_USER)
|
||||
@ -213,8 +213,8 @@ _posix1e_acl_check(acl_t acl)
|
||||
return (EINVAL);
|
||||
highest_uid = entry->ae_id;
|
||||
count_user++;
|
||||
break;
|
||||
|
||||
break;
|
||||
|
||||
case ACL_GROUP_OBJ:
|
||||
/* printf("_posix1e_acl_check: %d: ACL_GROUP_OBJ\n",
|
||||
i); */
|
||||
@ -223,7 +223,7 @@ _posix1e_acl_check(acl_t acl)
|
||||
stage = ACL_GROUP;
|
||||
count_group_obj++;
|
||||
break;
|
||||
|
||||
|
||||
case ACL_GROUP:
|
||||
/* printf("_posix1e_acl_check: %d: ACL_GROUP\n", i); */
|
||||
if (stage > ACL_GROUP)
|
||||
@ -234,7 +234,7 @@ _posix1e_acl_check(acl_t acl)
|
||||
highest_gid = entry->ae_id;
|
||||
count_group++;
|
||||
break;
|
||||
|
||||
|
||||
case ACL_MASK:
|
||||
/* printf("_posix1e_acl_check: %d: ACL_MASK\n", i); */
|
||||
if (stage > ACL_MASK)
|
||||
@ -242,7 +242,7 @@ _posix1e_acl_check(acl_t acl)
|
||||
stage = ACL_MASK;
|
||||
count_mask++;
|
||||
break;
|
||||
|
||||
|
||||
case ACL_OTHER:
|
||||
/* printf("_posix1e_acl_check: %d: ACL_OTHER\n", i); */
|
||||
if (stage > ACL_OTHER)
|
||||
@ -250,7 +250,7 @@ _posix1e_acl_check(acl_t acl)
|
||||
stage = ACL_OTHER;
|
||||
count_other++;
|
||||
break;
|
||||
|
||||
|
||||
default:
|
||||
/* printf("_posix1e_acl_check: %d: INVALID\n", i); */
|
||||
return (EINVAL);
|
||||
@ -260,7 +260,7 @@ _posix1e_acl_check(acl_t acl)
|
||||
|
||||
if (count_user_obj != 1)
|
||||
return (EINVAL);
|
||||
|
||||
|
||||
if (count_group_obj != 1)
|
||||
return (EINVAL);
|
||||
|
||||
@ -312,7 +312,7 @@ _posix1e_acl_id_to_name(acl_tag_t tag, uid_t id, ssize_t buf_len, char *buf,
|
||||
g = NULL;
|
||||
else
|
||||
g = getgrgid(id);
|
||||
if (g == NULL)
|
||||
if (g == NULL)
|
||||
i = snprintf(buf, buf_len, "%d", id);
|
||||
else
|
||||
i = snprintf(buf, buf_len, "%s", g->gr_name);
|
||||
|
Loading…
x
Reference in New Issue
Block a user