Merge "Make the udev vs plugdev distinction a bit clearer."

This commit is contained in:
Treehugger Robot 2020-08-01 01:47:56 +00:00 committed by Gerrit Code Review
commit 9597f27e1b

View file

@ -49,7 +49,7 @@ static std::string GetUdevProblem() {
// additionally just to be sure.
if (group_member(plugdev_group->gr_gid) || getegid() == plugdev_group->gr_gid) {
// The user is in plugdev so the problem is likely with the udev rules.
return "user in plugdev group; are your udev rules wrong?";
return "missing udev rules? user is in the plugdev group";
}
passwd* pwd = getpwuid(getuid());
return android::base::StringPrintf("user %s is not in the plugdev group",