| Summary: | adonthell FTBFS if "-Werror=format-security" flag is used | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Dhiru Kholia <dkholia> |
| Component: | adonthell | Assignee: | Mathieu Bridon <bochecha> |
| Status: | CLOSED RAWHIDE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | bochecha, bressers |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-12-09 09:46:14 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Bug Depends On: | |||
| Bug Blocks: | 1038083 | ||
|
Description
Dhiru Kholia
2013-12-03 02:50:40 UTC
Thanks for the bug report Dhiru!
I think I've figured out a way to fix it for the package, does that look right to you?
=============================================================================
From f3bd75479aef611e23c5f82ab2299b0ce15078e0 Mon Sep 17 00:00:00 2001
From: Mathieu Bridon <bochecha>
Date: Wed, 4 Dec 2013 12:36:02 +0800
Subject: [PATCH] Fix build with -Werror=format-security
---
src/py_adonthell_wrap.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/py_adonthell_wrap.cc b/src/py_adonthell_wrap.cc
index 048f0af..2a73207 100644
--- a/src/py_adonthell_wrap.cc
+++ b/src/py_adonthell_wrap.cc
@@ -867,7 +867,7 @@ SWIG_Python_AddErrorMsg(const char* mesg)
Py_DECREF(old_str);
Py_DECREF(value);
} else {
- PyErr_Format(PyExc_RuntimeError, mesg);
+ PyErr_Format(PyExc_RuntimeError, "%s", mesg);
}
}
--
1.8.4.2
=============================================================================
Unfortunately, that's not a patch I can send upstream, as this file is generated by the Makefile, it's not in the CVS source tree.
I think there's something to fix in the code generated by Swig, here. :-/
Should be fixed in Rawhide. |