summarylogtreecommitdiffstats
path: root/scap-workbench.patch
blob: 1ff2e9889c592fbd43f5fde49dc06a5f23740c82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/RemediationRoleSaver.cpp b/src/RemediationRoleSaver.cpp
index 900a221..e4bde06 100644
--- a/src/RemediationRoleSaver.cpp
+++ b/src/RemediationRoleSaver.cpp
@@ -133,7 +133,7 @@ void ProfileBasedRemediationSaver::saveToFile(const QString& filename)
     outputFile.open(QIODevice::WriteOnly);
     struct xccdf_session* session = mScanningSession->getXCCDFSession();
     struct xccdf_policy* policy = xccdf_session_get_xccdf_policy(session);
-    const int result = xccdf_policy_generate_fix(policy, NULL, mTemplateString.toUtf8().constData(), outputFile.handle());
+    const int result = xccdf_policy_generate_fix(policy, NULL, mTemplateString.toUtf8().constData(), "xccdf-file.xml", NULL, outputFile.handle(), 0);
     if (!outputFile.flush())
     {
         throw std::runtime_error("Could not write to the destination location.");