diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-11-17 00:51:24 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-11-17 00:52:10 +0100 |
commit | 23e096cc60eb73f24b812e4ceba7c4c2c141e2db (patch) | |
tree | cb29a125f9e1028d51a12182e261aa7d493ff0d5 /src/login | |
parent | b16fee15ff0dbaa8140beb62dc27f3a686c70258 (diff) |
tree-wide: make macros for converting fds to pointers and back generic and use them everywhere
Diffstat (limited to 'src/login')
-rw-r--r-- | src/login/pam_systemd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/login/pam_systemd.c b/src/login/pam_systemd.c index 3f7cbb78df..ed4f7c726f 100644 --- a/src/login/pam_systemd.c +++ b/src/login/pam_systemd.c @@ -493,7 +493,7 @@ _public_ PAM_EXTERN int pam_sm_open_session( return PAM_SESSION_ERR; } - r = pam_set_data(handle, "systemd.session-fd", INT_TO_PTR(session_fd+1), NULL); + r = pam_set_data(handle, "systemd.session-fd", FD_TO_PTR(session_fd), NULL); if (r != PAM_SUCCESS) { pam_syslog(handle, LOG_ERR, "Failed to install session fd."); safe_close(session_fd); |