diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-12-07 04:31:21 -0600 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2019-12-07 04:31:21 -0600 |
commit | 8c48b20bb7433c69228447bce4e5744bf658dc3d (patch) | |
tree | 02826111155c9ee4c2c43cc76a252a3499b1c7a3 /hscript/user.cc | |
parent | e163039480daa8e4e2dbccab3f2fdbb422ee632b (diff) | |
download | horizon-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.cc | 1 |
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 |