Redshift adjusts the color temperature of your screen according to your surroundings. This may help your eyes hurt less if you are working in front of the screen at night.
If a user is logged in via LDAP, some implementations of getpwuid() seem
to return NULL. Dereferencing this pointer will cause a segfault. This
change avoids dereferencing the potential NULL pointer.
Thanks for the patch! LGTM, I hope the owners can soon merge this.
This can also happen if the apparmor profile that comes with debian is enabled which doesn’t grant read access to /etc/passwd*.
If a user is logged in via LDAP, some implementations of getpwuid() seem to return NULL. Dereferencing this pointer will cause a segfault. This change avoids dereferencing the potential NULL pointer.