Skip to content

Commit

Permalink
Merge pull request #1546 from aconz2/getpwuid_r-alloc
Browse files Browse the repository at this point in the history
fix getpwuid_r error handling
  • Loading branch information
giuseppe authored Sep 4, 2024
2 parents 3a400b1 + fb593fc commit 7d73c79
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcrun/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -1488,7 +1488,7 @@ getsubidrange (uid_t id, int is_uid, uint32_t *from, uint32_t *len)
return -1;
}

if (ret < 0 && errno != ERANGE)
if (ret != ERANGE)
return ret;

buf_size *= 2;
Expand Down

1 comment on commit 7d73c79

@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.