New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use utmpx where available #52

Open
wants to merge 6 commits into
base: master
from

Conversation

Projects
None yet
1 participant
@awilfox

awilfox commented Jun 16, 2018

On the musl libc, utmp is unimplemented. The utmps library by skarnet provides utmpx functionality on musl, but not utmp. This pull request modifies Linux PAM to support user accounting on musl distros that link it to utmps, by using <utmpx.h> instead of <utmp.h> if HAVE_UTMPX_H is defined in config.h.

On glibc, utmpx and utmp are aliases, so there is no functional change there.

awilfox added some commits Jun 16, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment