diff options
author | tobik <tobik@FreeBSD.org> | 2018-09-01 00:46:38 +0800 |
---|---|---|
committer | tobik <tobik@FreeBSD.org> | 2018-09-01 00:46:38 +0800 |
commit | 3653a6b84fd1dea6a7e2edf2831fda22c6eb92ee (patch) | |
tree | b4f0317bd99797dd8be663230bcf06d1b3cede7a /irc | |
parent | 21172aca5b00cd5893a4b5828c902c242777affa (diff) | |
download | freebsd-ports-gnome-3653a6b84fd1dea6a7e2edf2831fda22c6eb92ee.tar.gz freebsd-ports-gnome-3653a6b84fd1dea6a7e2edf2831fda22c6eb92ee.tar.zst freebsd-ports-gnome-3653a6b84fd1dea6a7e2edf2831fda22c6eb92ee.zip |
irc/minbif: Fix build with Clang 6
src/im/auth_pam.cpp:193:11: error: no matching function for call to 'pam_chauthtok'
retval = pam_chauthtok(pamh, NULL);
^~~~~~~~~~~~~
/usr/include/security/pam_appl.h:64:1: note: candidate function not viable: no known conversion from 'nullptr_t' to 'int' for 2nd argument
pam_chauthtok(pam_handle_t *_pamh,
^
http://beefy12.nyi.freebsd.org/data/head-amd64-default/p478276_s338342/logs/errors/minbif-1.0.5_10.log
Diffstat (limited to 'irc')
-rw-r--r-- | irc/minbif/files/patch-src__im__auth_pam.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/irc/minbif/files/patch-src__im__auth_pam.cpp b/irc/minbif/files/patch-src__im__auth_pam.cpp index b57500578951..b637cf441dbc 100644 --- a/irc/minbif/files/patch-src__im__auth_pam.cpp +++ b/irc/minbif/files/patch-src__im__auth_pam.cpp @@ -1,4 +1,4 @@ ---- src/im/auth_pam.cpp.orig +--- src/im/auth_pam.cpp.orig 2011-12-04 14:24:51 UTC +++ src/im/auth_pam.cpp @@ -19,6 +19,7 @@ #include <cstring> @@ -8,3 +8,12 @@ #include <pwd.h> #include "auth.h" +@@ -189,7 +190,7 @@ bool AuthPAM::setPassword(const string& password) + pam_conv_func_data.update = true; + pam_conv_func_data.new_password = password; + +- retval = pam_chauthtok(pamh, NULL); ++ retval = pam_chauthtok(pamh, 0); + if (retval != PAM_SUCCESS) + b_log[W_ERR] << "PAM: Password change failed: " << pam_strerror(pamh, retval); + |