revert pwd->name to user when error occurs (#979)

This commit is contained in:
Rayson Zhu
2016-11-28 22:02:45 -06:00
committed by Max Lv
parent 4034190b15
commit 135ceedb14
+2 -2
View File
@@ -153,8 +153,8 @@ run_as(const char *user)
break;
} else if (err != ERANGE) {
if (err) {
LOGE("run_as user '%s' could not be found: %s", pwd->pw_name, strerror(
err));
LOGE("run_as user '%s' could not be found: %s", user,
strerror(err));
} else {
LOGE("run_as user '%s' could not be found.", user);
}