howdy
howdy copied to clipboard
fix(pam): use environ variable when getenv doesn't work
On some programs like sudo, getenv doesn't return the environment variable value.
We check the char **environ variable also to not miss those values.
Close #902
This doesn't really make sense to me. Why is it that environ may contain variables that getenv doesn't return? It should be the same.
This doesn't really make sense to me. Why is it that
environmay contain variables thatgetenvdoesn't return? It should be the same.
Frankly I don't know myself, I wasn't thinking that it was possible but I was able to reproduce the bug as it was initially reported and the fix works.