src/filed/bxattr_solaris.c
bool acl_is_trivial(int count, aclent_t *entries)
{
   int n;
   aclent_t *ace;

   for (n = 0; n < count; n++) {
      ace = &entries[n];

      if (!(ace->a_type == USER_OBJ ||
            ace->a_type == GROUP_OBJ ||
            ace->a_type == OTHER_OBJ ||
            ace->a_type == CLASS_OBJ))
        return false;
   }
   return true;
}
/*
 * See if an acl is a trivial one (e.g. just the stat bits encoded as acl.)
 * There is no need to store those acls as we already store the stat bits too.
 */
See if an acl is a trivial one
There is no need to store those acls as we already store the stat bits too.
See if an acl is a trivial one There is no need to store those acls as we already store the stat bits too .
bool acl_is_trivial(int count, aclent_t *entries)
{
   int n;
   aclent_t *ace;
   for (n = 0; n < count; n++) {
      ace = &entries[n];
      if (!(ace->a_type == USER_OBJ ||
            ace->a_type == GROUP_OBJ ||
            ace->a_type == OTHER_OBJ ||
            ace->a_type == CLASS_OBJ))
        return false;
   }
   return true;
}
bool acl_is_trivial ( int count , aclent_t * entries ) { int n ; aclent_t * ace ; for ( n = 0 ; n < count ; n ++ ) { ace = & entries [ n ] ; if ( ! ( ace -> a_type == USER_OBJ || ace -> a_type == GROUP_OBJ || ace -> a_type == OTHER_OBJ || ace -> a_type == CLASS_OBJ ) ) return false ; } return true ; }
See if an acl is a trivial one (e.g.
See if an acl is a trivial one ( e . g .