Skip to content

Use utmpx where available - #52

Open
awilfox wants to merge 6 commits into
linux-pam:masterfrom
AdelieLinux:use-utmpx
Open

awilfox wants to merge 6 commits into
linux-pam:masterfrom
AdelieLinux:use-utmpx

Conversation

@awilfox

@awilfox awilfox commented Jun 16, 2018

Copy link
Copy Markdown

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.

@t8m

t8m commented Feb 18, 2020

Copy link
Copy Markdown
Member

I am concerned about making the utmpx calls as the default. They should be done only for the MUSL case.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants