pam_systemd_home: use correct macro for converting ptr to fd

This commit is contained in:
Lennart Poettering
2020-05-12 11:10:10 +02:00
parent 9e45fb09bf
commit da4340fd43
+1 -1
View File
@@ -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);