adamwill / rpms / openscap

Forked from rpms/openscap 3 years ago
Clone

Blame SOURCES/openscap-1.2.17-align-bash-role-header-with-help.patch

bcc67f
From 9b80b4a4ea4163f65004f2b16e65b8adcdf2b3dc Mon Sep 17 00:00:00 2001
bcc67f
From: Marek Haicman <mhaicman@redhat.com>
bcc67f
Date: Thu, 4 Jan 2018 00:29:26 +0100
bcc67f
Subject: [PATCH] Make command in bash role header in line with --help
bcc67f
bcc67f
Point is to make more explicit it's a placeholder name - using
bcc67f
the same name --help use might do the trick.
bcc67f
---
bcc67f
 src/XCCDF_POLICY/xccdf_policy_remediate.c | 2 +-
bcc67f
 1 file changed, 1 insertion(+), 1 deletion(-)
bcc67f
bcc67f
diff --git a/src/XCCDF_POLICY/xccdf_policy_remediate.c b/src/XCCDF_POLICY/xccdf_policy_remediate.c
bcc67f
index fbbad8885..1a7d21ed7 100644
bcc67f
--- a/src/XCCDF_POLICY/xccdf_policy_remediate.c
bcc67f
+++ b/src/XCCDF_POLICY/xccdf_policy_remediate.c
bcc67f
@@ -846,7 +846,7 @@ static int _write_script_header_to_fd(struct xccdf_policy *policy, struct xccdf_
bcc67f
 			"# Benchmark Version:  %s\n#\n"
bcc67f
 			"# XCCDF Version:  %s\n#\n"
bcc67f
 			"# This file was generated by OpenSCAP %s using:\n"
bcc67f
-			"# 	$ oscap xccdf generate fix --profile %s%s%s sds.xml \n#\n"
bcc67f
+			"# 	$ oscap xccdf generate fix --profile %s%s%s xccdf-file.xml \n#\n"
bcc67f
 			"# This script is generated from an OpenSCAP profile without preliminary evaluation.\n"
bcc67f
 			"# It attempts to fix every selected rule, even if the system is already compliant.\n"
bcc67f
 			"#\n"