From b32b04c3f1b354b0b75c5c8badae714a35b9d62b Mon Sep 17 00:00:00 2001 From: Patrick Murphy Date: Thu, 23 Apr 2020 10:47:47 -0500 Subject: simplified passwd call --- src/commission_func.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commission_func.cc b/src/commission_func.cc index 6f510f6..14dd49f 100644 --- a/src/commission_func.cc +++ b/src/commission_func.cc @@ -382,7 +382,7 @@ bool legalName(std::string name) { /*** generate command functions ***/ std::string passwd_cmd_gen(std::string pw) { - std::string cmd = "/usr/bin/passwd \""; + std::string cmd = "passwd \""; cmd +=pw; cmd +="\""; return cmd; -- cgit v1.2.3