summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/commission_func.cc4
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
+}