-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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.Users() cannot get information on arm64 #1129
Comments
host.Users() is defined here and retrieves its information from |
Can load and read the content. Get information error here: unexpected EOF |
It seems that Debian aarch64 writes 400 bytes utmp entries (raspberrypi/Raspberry-Pi-OS-64bit#140). sizeOfUtmp is hardcoded in host_linux_arm64.go to 384. Using C.sizeof_struct_utmp as sizeOfUtmp fixes reading the entries. |
I get the same error, Is there a fix for this? |
I have the same issue on aarch64. @shirou, I can assist and provide any data from impacted system if you are interested. |
@JosefRypacek |
Replied to the PR thread. |
Describe the bug
Host.user() cannot get information on arm64
To Reproduce
Environment (please complete the following information):
cpu_arch: aarch64
os: Centos7/Ubuntu 20
Additional context
Get information error here: unexpected EOF
host_linux.go
err := binary.Read(br, binary.LittleEndian, &u)
The text was updated successfully, but these errors were encountered: