howdy icon indicating copy to clipboard operation
howdy copied to clipboard

fix(pam): use environ variable when getenv doesn't work

Open saidsay-so opened this issue 2 years ago • 3 comments

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

saidsay-so avatar Apr 10 '24 08:04 saidsay-so

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.

principis avatar Jul 24 '24 13:07 principis

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.

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.

saidsay-so avatar Aug 01 '24 10:08 saidsay-so