Skip to content

Commit

Permalink
Merge pull request #1543 from saschagrunert/gids-len
Browse files Browse the repository at this point in the history
Fix `additional_gids_size` on `process_user_dup`
  • Loading branch information
rhatdan authored Sep 3, 2024
2 parents 28b47d6 + a32d433 commit 04e09b0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libcrun/container.c
Original file line number Diff line number Diff line change
Expand Up @@ -568,6 +568,7 @@ process_user_dup (const runtime_spec_schema_config_schema_process_user *const sr

if (src->additional_gids)
{
dst->additional_gids_len = src->additional_gids_len;
const size_t additional_gids_size = src->additional_gids_len * sizeof (gid_t);
dst->additional_gids = xmalloc (additional_gids_size);
memcpy (dst->additional_gids, src->additional_gids, additional_gids_size);
Expand Down

1 comment on commit 04e09b0

@packit-as-a-service
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

podman-next COPR build failed. @containers/packit-build please check.

Please sign in to comment.