[Freeipa-devel] Minor error: format not a string literal and no format arguments [-Werror=format-security]

Diane Trout diane at ghic.org
Thu May 30 06:26:17 UTC 2013


Hi,

I was trying to compile freeipa on debian and the compiler threw a minor 
error. 

  Resolve a -Werror=format-security error.

  ipa_extdom_extop.c: In function 'ipa_extdom_extop':
  ipa_extdom_extop.c:144:9: error: format not a string literal and no format 
arguments [-Werror=format-security]

--- a/daemons/ipa-slapi-plugins/ipa-extdom-extop/ipa_extdom_extop.c
+++ b/daemons/ipa-slapi-plugins/ipa-extdom-extop/ipa_extdom_extop.c
@@ -141,7 +141,7 @@
     free(req);
     free(res);
     if (err_msg != NULL) {
-        LOG(err_msg);
+        LOG("%s", err_msg);
     }
     slapi_send_ldap_result(pb, rc, NULL, err_msg, 0, NULL);
     return SLAPI_PLUGIN_EXTENDED_SENT_RESULT;




More information about the Freeipa-devel mailing list