From 8c48b20bb7433c69228447bce4e5744bf658dc3d Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Sat, 7 Dec 2019 04:31:21 -0600 Subject: hscript: UserPassphrase: Ensure simulated runs don't actually set passwords --- hscript/user.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'hscript/user.cc') 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 -- cgit v1.2.3-60-g2f50