From 1a8a8fbfa85952e6bb964c4c8e04abd99f03dcf8 Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Thu, 17 Oct 2019 20:54:49 -0500 Subject: hscript: Fix up rootpw execute shell printing --- hscript/user.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hscript') diff --git a/hscript/user.cc b/hscript/user.cc index bfc2066..0513d21 100644 --- a/hscript/user.cc +++ b/hscript/user.cc @@ -42,8 +42,8 @@ bool RootPassphrase::execute(ScriptOptions options) const { std::to_string(time(nullptr) / 86400) + ":0:::::"; if(options.test(Simulate)) { - std::cout << "(printf '" << root_line << "\\" - << "n'; cat /target/etc/shadow | sed '1d') > /tmp/shadow" + std::cout << "(printf '" << root_line << "\\" << "n'; " + << "cat /target/etc/shadow | sed '1d') > /tmp/shadow" << std::endl << "mv /tmp/shadow /target/etc/shadow" << std::endl << "chown root:shadow /target/etc/shadow" << std::endl -- cgit v1.2.3-60-g2f50