Make the udev vs plugdev distinction a bit clearer.
Bug: http://b/162109763 Test: treehugger Change-Id: Id392d0d87dd6ba098382436062b90e3a5ed79025
This commit is contained in:
parent
5ce349927d
commit
e7edfbc916
|
@ -49,7 +49,7 @@ static std::string GetUdevProblem() {
|
||||||
// additionally just to be sure.
|
// additionally just to be sure.
|
||||||
if (group_member(plugdev_group->gr_gid) || getegid() == plugdev_group->gr_gid) {
|
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.
|
// 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());
|
passwd* pwd = getpwuid(getuid());
|
||||||
return android::base::StringPrintf("user %s is not in the plugdev group",
|
return android::base::StringPrintf("user %s is not in the plugdev group",
|
||||||
|
|
Loading…
Reference in New Issue