Fix a typo

This commit is contained in:
Max Lv
2016-11-10 15:25:53 +08:00
parent b136d6c6d3
commit cb0cc25fd9
+1 -1
View File
@@ -155,7 +155,7 @@ run_as(const char *user)
user, strerror(errno));
return 0;
}
if (setresuid(pwd->pw_uid, 0) != 0) {
if (setreuid(pwd->pw_uid, 0) != 0) {
LOGE("Could not change user id to that of run_as user '%s': %s",
user, strerror(errno));
return 0;