Skip to content
Snippets Groups Projects
Commit 3ea628fc authored by Robert Craig's avatar Robert Craig
Browse files

Remove errant newline from generated policy file.


When running the post_process_mac_perms script
an unneeded newline is appended to modified
mac_permissions.xml file. Use sys.stdout.write
instead which avoids any formatting when printing.

Change-Id: Ib662dab1566299467371389dc236619aec40f5ac
Signed-off-by: default avatarrpcraig <rpcraig@tycho.ncsc.mil>
parent 6d8fa695
No related branches found
No related tags found
No related merge requests found
...@@ -86,7 +86,7 @@ def add_leftover_certs(args): ...@@ -86,7 +86,7 @@ def add_leftover_certs(args):
# Inline replace with new policy stanzas # Inline replace with new policy stanzas
for line in fileinput.input(args.policy, inplace=True): for line in fileinput.input(args.policy, inplace=True):
print line.replace('</policy>', mac_perms_string) sys.stdout.write(line.replace('</policy>', mac_perms_string))
def main(argv): def main(argv):
parser = argparse.ArgumentParser(description=__doc__) parser = argparse.ArgumentParser(description=__doc__)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment