]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
pam_systemd_home: use correct macro for converting ptr to fd
authorLennart Poettering <lennart@poettering.net>
Thu, 7 May 2020 08:49:52 +0000 (10:49 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 12 May 2020 09:10:10 +0000 (11:10 +0200)
src/home/pam_systemd_home.c

index 0d887c047bc0578be0dc3f5122d33f60b7f4d6f8..7662fa69ebfc8a98571e4d0c799488055ba04bd9 100644 (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);