Merge pull request #2 from iquaba/patch-1

Try without identifying current user
This commit is contained in:
Matt Johnston 2014-08-06 22:04:49 +08:00
commit 9468f7f6d6

View File

@ -684,7 +684,7 @@ static void fill_own_user() {
pw = getpwuid(uid); pw = getpwuid(uid);
if (pw == NULL || pw->pw_name == NULL) { if (pw == NULL || pw->pw_name == NULL) {
dropbear_exit("Unknown own user"); dropbear_log(LOG_INFO, "Warning: failed to identify current user. Trying anyway.");
} }
cli_opts.own_user = m_strdup(pw->pw_name); cli_opts.own_user = m_strdup(pw->pw_name);