-
Notifications
You must be signed in to change notification settings - Fork 401
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
getpwuid() fails #175
Comments
It's because getpwuid return NULL and errno is set to 0 (Success). If you read the manual, you can see that (in RETURN VALUE and ERRORS section):
I don't know how LDAP user acount work with getpwuid(). |
We can have more information about issue like linux (32/64) ? distribution of linux ? I find similar issue on stackoverflow |
We could totally add a fallback code path which used the $USER environment variable (if set) when getpwuid fails. @jbeigel would you be able to test such a patch in your environment? |
I try to use i3lock on a Linux system with LDAP user account. Later in the code, this seems to be handled correctly via PAM, but right at the start after the option parsing, getpwuid() is called, fails and i3lock immediately exit with the (somewhat funny) error "i3lock: getpwuid() failed: Success"
The text was updated successfully, but these errors were encountered: