From 135ceedb1404b8e8ce3edb2580a1027991e3e67c Mon Sep 17 00:00:00 2001 From: Rayson Zhu Date: Mon, 28 Nov 2016 22:02:45 -0600 Subject: [PATCH] revert `pwd->name` to `user` when error occurs (#979) --- src/utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils.c b/src/utils.c index 2c874e30..02556861 100644 --- a/src/utils.c +++ b/src/utils.c @@ -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); }