From da4340fd43abb9aed3a0fb29f632e9ac5f162f8a Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 7 May 2020 10:49:52 +0200 Subject: [PATCH] pam_systemd_home: use correct macro for converting ptr to fd --- src/home/pam_systemd_home.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/home/pam_systemd_home.c b/src/home/pam_systemd_home.c index 0d887c047b..7662fa69eb 100644 --- a/src/home/pam_systemd_home.c +++ b/src/home/pam_systemd_home.c @@ -411,7 +411,7 @@ static int acquire_home( /* If we already have acquired the fd, let's shortcut this */ r = pam_get_data(handle, "systemd-home-fd", &home_fd_ptr); - if (r == PAM_SUCCESS && PTR_TO_INT(home_fd_ptr) >= 0) + if (r == PAM_SUCCESS && PTR_TO_FD(home_fd_ptr) >= 0) return PAM_SUCCESS; r = pam_acquire_bus_connection(handle, &bus);