summaryrefslogtreecommitdiff
path: root/hscript/user.cc
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2019-12-07 04:31:21 -0600
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2019-12-07 04:31:21 -0600
commit8c48b20bb7433c69228447bce4e5744bf658dc3d (patch)
tree02826111155c9ee4c2c43cc76a252a3499b1c7a3 /hscript/user.cc
parente163039480daa8e4e2dbccab3f2fdbb422ee632b (diff)
downloadhorizon-8c48b20bb7433c69228447bce4e5744bf658dc3d.tar.gz
horizon-8c48b20bb7433c69228447bce4e5744bf658dc3d.tar.bz2
horizon-8c48b20bb7433c69228447bce4e5744bf658dc3d.tar.xz
horizon-8c48b20bb7433c69228447bce4e5744bf658dc3d.zip
hscript: UserPassphrase: Ensure simulated runs don't actually set passwords
Diffstat (limited to 'hscript/user.cc')
-rw-r--r--hscript/user.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/hscript/user.cc b/hscript/user.cc
index 47f7b89..9f6873e 100644
--- a/hscript/user.cc
+++ b/hscript/user.cc
@@ -305,6 +305,7 @@ bool UserPassphrase::execute(ScriptOptions opts) const {
if(opts.test(Simulate)) {
std::cout << "usermod -p '" << _passphrase << "' " << _username
<< std::endl;
+ return true;
}
#ifdef HAS_INSTALL_ENV