Browse Source

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

pull/986/head
Rayson Zhu 8 years ago
committed by Max Lv
parent
commit
135ceedb14
1 changed files with 2 additions and 2 deletions
  1. 4
      src/utils.c

4
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);
}

Loading…
Cancel
Save