summaryrefslogtreecommitdiffstats
path: root/src/home
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2020-05-12 15:54:42 +0200
committerGitHub <noreply@github.com>2020-05-12 15:54:42 +0200
commit0289b4ec69b5d740a9e92e87d6d062f811d7d349 (patch)
treef93dc458ed5acb6a49bec33d30c590bf2a826b5e /src/home
parentMerge pull request #15789 from poettering/homed-bus-api (diff)
parentupdate TODO (diff)
downloadsystemd-0289b4ec69b5d740a9e92e87d6d062f811d7d349.tar.xz
systemd-0289b4ec69b5d740a9e92e87d6d062f811d7d349.zip
Merge pull request #15785 from poettering/pam-sudo-fixes-part1
some simple PAM fixes split out of #15742
Diffstat (limited to 'src/home')
-rw-r--r--src/home/pam_systemd_home.c2
1 files changed, 1 insertions, 1 deletions
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);