From cb0cc25fd9132f3efcaa82ba679439895bad8c94 Mon Sep 17 00:00:00 2001 From: Max Lv Date: Thu, 10 Nov 2016 15:25:53 +0800 Subject: [PATCH] Fix a typo --- src/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils.c b/src/utils.c index a46cdb7c..1b689483 100644 --- a/src/utils.c +++ b/src/utils.c @@ -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;