unsigned int gid;
GroupInfo gi;
+ if (groupName.find_first_of("\t\n\r") != std::string::npos)
+ vfsThrow(DMLITE_SYSERR(EINVAL), "group name can't contain tabelators or newline characters");
+
// new gid
gid = this->nextGid_;
while (this->gids_.find(gid) != this->gids_.end())
unsigned int uid;
UserInfo ui;
+ if (userName.find_first_of("\t\r\n") != std::string::npos)
+ vfsThrow(DMLITE_SYSERR(EINVAL), "user name can't contain tabelators or newline characters");
+
// new uid
uid = this->nextUid_;
while (this->uids_.find(uid) != this->uids_.end())