svn commit: r478596 - head/irc/minbif/files

Tobias Kortkamp tobik at FreeBSD.org
Fri Aug 31 16:46:39 UTC 2018


Author: tobik
Date: Fri Aug 31 16:46:38 2018
New Revision: 478596
URL: https://svnweb.freebsd.org/changeset/ports/478596

Log:
  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

Modified:
  head/irc/minbif/files/patch-src__im__auth_pam.cpp

Modified: head/irc/minbif/files/patch-src__im__auth_pam.cpp
==============================================================================
--- head/irc/minbif/files/patch-src__im__auth_pam.cpp	Fri Aug 31 16:40:05 2018	(r478595)
+++ head/irc/minbif/files/patch-src__im__auth_pam.cpp	Fri Aug 31 16:46:38 2018	(r478596)
@@ -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);
+ 


More information about the svn-ports-head mailing list