Merge "libprocessgroup: UIDs in linux are unsigned" into main

This commit is contained in:
Treehugger Robot 2023-07-24 22:44:22 +00:00 committed by Gerrit Code Review
commit a414e2fd9b

View file

@ -146,7 +146,7 @@ bool ProfileAttribute::GetPathForUID(uid_t uid, std::string* path) const {
const std::string& file_name =
controller()->version() == 2 && !file_v2_name_.empty() ? file_v2_name_ : file_name_;
*path = StringPrintf("%s/uid_%d/%s", controller()->path(), uid, file_name.c_str());
*path = StringPrintf("%s/uid_%u/%s", controller()->path(), uid, file_name.c_str());
return true;
}