Skip to content
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

Fix wrong OpenBSD user count #1010

Merged
merged 1 commit into from
May 29, 2021

Conversation

gdbinit
Copy link
Contributor

@gdbinit gdbinit commented Dec 13, 2020

There are empty entries in OpenBSD's utmp that have a line and time entry but no user logged in (the entry is "cleared" after user logs out but not totally as expected in the code here). Current checks are insufficient so check if Name field is empty and skip in that case.

There are empty entries in OpenBSD's utmp that have a line and time entry but no user logged in (the entry is "cleared" after user logs out but not totally as expected in the code here). Current checks are insufficient so check if Name field is empty and skip in that case.
@Lomanic
Copy link
Collaborator

Lomanic commented Dec 17, 2020

LGTM (test OK). Would you please fix this also in the same commit in v3/host/host_openbsd.go?

@shirou
Copy link
Owner

shirou commented May 29, 2021

I will create an another PR to adapt this PR to v3. Thank you!

@shirou shirou merged commit 2782a10 into shirou:master May 29, 2021
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.

3 participants