Closed RomainMuller closed 7 years ago
Sorry totally missed that issue!
I think it should be possible with standard config
attributes as they are used in the standard library as well. Unfortunately I don't have a mac to test any changes, so it would be great if you could help with that once I cook something up.
This can be resolved in part by preventing functions that don't exist on OS X from being compiled, I have a branch that does this here.
The other part is to add a bit of code to pam-auth
(or any other crate using pam-sys
) that uses the functions that are available on OS X to do the roughly the same thing.
It looks like pam_putenv
and pam_getenv
can substitute for part of it, and the behavior of pam_misc_drop_env
can be replicated in other ways.
@steveatinfincia looks good, mind opening a PR?
I was going to go the same route but didn't get around to do it. Yeah, pam_misc_drop_env
is just a convenience function, I should be able to replace it somehow.
@1wilkens sure I'll open one tonight :)
Fixed by #2!
Hey,
The bindings don't build on OS X Sierra because it attempts linking against
pam_misc
, which apparently does not exist.See the below trace:
Is there a way this binding can be made optional?