Heiko Schlittermann hs@schlittermann.de (Mo 01 Mär 2021 12:41:58 CET):
Hi Sumit,
thank you for responding.
Sumit Bose sbose@redhat.com (Mo 01 Mär 2021 11:33:51 CET):
I guess you are right that setpwent() should make sure to rewind to the beginning.
Would you mind to open a ticket at https://github.com/SSSD/sssd/issues/new about this?
Sure.
https://github.com/SSSD/sssd/issues/5523 https://github.com/SSSD/sssd/pull/5524
- state_ctx->pwent->domain = 0;
- state_ctx->pwent->result = 0;
state_ctx->pwent.domain = 0; state_ctx->pwent.result = 0;
Yes, after digging a bit more over the weekend, I had the same idea, I'm testing it right now. Same for the other setXYent() calls, that came into my mind as well.
Fixed that for pwent, grent, servent (svcent).