]> Savannah Git Hosting - gnulib.git/commit
readutmp: Fix crash when gdm is in use.
authorBruno Haible <bruno@clisp.org>
Fri, 15 Sep 2023 15:40:10 +0000 (17:40 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 15 Sep 2023 15:40:10 +0000 (17:40 +0200)
commit579f2d6f3d1d817c2f7e2c603c9a3ded63dcaa92
tree1705e2ec13942a1770c263ba0cdf2aab425df009
parent211053a0b63f4627cd6c94154c2936a1862f7daf
readutmp: Fix crash when gdm is in use.

Reported by Thorsten Kukuk <kukuk@suse.com> in
<https://lists.gnu.org/archive/html/bug-gnulib/2023-09/msg00093.html>.

* lib/readutmp.c (read_utmp_from_systemd): Don't use the value returned
by sd_session_get_display if it is NULL.
ChangeLog
lib/readutmp.c