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

[host][darwin]: fix Users #1537

Merged
merged 1 commit into from Oct 22, 2023
Merged

[host][darwin]: fix Users #1537

merged 1 commit into from Oct 22, 2023

Conversation

shirou
Copy link
Owner

@shirou shirou commented Oct 10, 2023

perhaps related: #1510

host.Users() returns empty(not nil) on at least my Apple M2, 13.3.1. (Note: This mac is temporarily borrowed.)

I found macOS's utmpx file has some header. According to this page, the header exists at least from 10.5.

I went through trial and error until I found the right values to skip header. So the 604 is is not created based on anything. I am looking for references to provide evidence of this. And hence it is not known if it will work in other macOS versions.

@shirou shirou merged commit c020a08 into master Oct 22, 2023
37 checks passed
@shirou shirou deleted the feat/fix_darwin_host_users branch October 22, 2023 02:15
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.

None yet

1 participant