summaryrefslogtreecommitdiff
path: root/hscript/user.cc
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-17 20:54:49 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-10-17 20:54:49 -0500
commit1a8a8fbfa85952e6bb964c4c8e04abd99f03dcf8 (patch)
tree86074c67bc97794e95a000b66d76542e5095dc9b /hscript/user.cc
parentfbc6f469d5bb1424f7558c42437ba4fe64711413 (diff)
downloadhorizon-1a8a8fbfa85952e6bb964c4c8e04abd99f03dcf8.tar.gz
horizon-1a8a8fbfa85952e6bb964c4c8e04abd99f03dcf8.tar.bz2
horizon-1a8a8fbfa85952e6bb964c4c8e04abd99f03dcf8.tar.xz
horizon-1a8a8fbfa85952e6bb964c4c8e04abd99f03dcf8.zip
hscript: Fix up rootpw execute shell printing
Diffstat (limited to 'hscript/user.cc')
-rw-r--r--hscript/user.cc4
1 files changed, 2 insertions, 2 deletions
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