mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-10-28 11:43:50 +00:00
revert pwd->name to user when error occurs (#979)
This commit is contained in:
+2
-2
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user