diff options
author | Patrick Murphy <pmurphy@dotnet.multitech.net> | 2020-06-12 11:22:31 -0500 |
---|---|---|
committer | Patrick Murphy <pmurphy@dotnet.multitech.net> | 2020-06-12 11:22:31 -0500 |
commit | 381049bb35af31f12d2a09b1532f49fb8357d4d4 (patch) | |
tree | fb9e1395c73a32f8706039c01bb98df39ae17c1c | |
parent | 8a84d6b27735bef7daa6aae74957cd0db9b95981 (diff) | |
parent | 7423ff98eb234188a9441ad95e5490ac5584df7b (diff) | |
download | commissioning-381049bb35af31f12d2a09b1532f49fb8357d4d4.tar.gz commissioning-381049bb35af31f12d2a09b1532f49fb8357d4d4.tar.bz2 commissioning-381049bb35af31f12d2a09b1532f49fb8357d4d4.zip |
Merge remote-tracking branch 'remotes/gitlab/master'1.0.1
-rw-r--r-- | src/commission_func.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commission_func.cc b/src/commission_func.cc index aae520f..21c5d16 100644 --- a/src/commission_func.cc +++ b/src/commission_func.cc @@ -370,7 +370,7 @@ bool legalName(std::string name) { char *temp = NULL; std::string popen_out; */ - if (getpwnam(name.c_str()) == NULL) { + if (name != "root") { syslog (LOG_ALERT, "Received a legal name request"); //the name is available return true; @@ -392,4 +392,4 @@ std::string useradd_cmd_gen(std::string usr) { cmd +=usr; cmd +="\""; return cmd; -}
\ No newline at end of file +} |