Loading src/admin.cpp +4 −8 Changes for src/admin.cpp: 4 added lines, 8 removed lines. Original line number Diff line number Diff line Loading @@ -1463,12 +1463,8 @@ namespace authdb { if( strcmp(curdispo->getKey(),"name")==0 && curdispo->getValue()!=nullptr){ if( strcmp(curdispo->getValue(),"gpoid")==0 ){ uuid_t gpouuid; std::copy( curformdat->Value.begin(), curformdat->Value.end(), &gpouuid[0] ); curformdat->Value.push_back('\0'); uuid gpouuid(curformdat->Value.data()); gpodat = std::make_shared <GpoData>(gpouuid); break; } Loading Loading @@ -1497,8 +1493,8 @@ namespace authdb { else gpodat->setGpoValue(true); }else if(strcmp(curdispo->getValue(),"gpoingroup")==0 ){ uuid_t gal; std::copy(curformdat->Value.begin(),curformdat->Value.end(),&gal[0]); curformdat->Value.push_back('\0'); uuid gal(curformdat->Value.data()); allow.emplace_back(gal); } } Loading Loading
src/admin.cpp +4 −8 Changes for src/admin.cpp: 4 added lines, 8 removed lines. Original line number Diff line number Diff line Loading @@ -1463,12 +1463,8 @@ namespace authdb { if( strcmp(curdispo->getKey(),"name")==0 && curdispo->getValue()!=nullptr){ if( strcmp(curdispo->getValue(),"gpoid")==0 ){ uuid_t gpouuid; std::copy( curformdat->Value.begin(), curformdat->Value.end(), &gpouuid[0] ); curformdat->Value.push_back('\0'); uuid gpouuid(curformdat->Value.data()); gpodat = std::make_shared <GpoData>(gpouuid); break; } Loading Loading @@ -1497,8 +1493,8 @@ namespace authdb { else gpodat->setGpoValue(true); }else if(strcmp(curdispo->getValue(),"gpoingroup")==0 ){ uuid_t gal; std::copy(curformdat->Value.begin(),curformdat->Value.end(),&gal[0]); curformdat->Value.push_back('\0'); uuid gal(curformdat->Value.data()); allow.emplace_back(gal); } } Loading