# HG changeset patch # User iquaba # Date 1407332923 18000 # Node ID 1bf92da7a2a0b1634cd686713974a4157d94adc1 # Parent 36eacc322e00924e511810c519bf5a3f05898cdd Try without identifying current user Small change that warns the user if the current user cannot be identified rather than aborting. This came in handy when I put dropbear on a dlink that did not have a true user environment. Falling back on the "-l" option and user@ options works just fine as a client. The only implication I found is that the -J option will fail ungracefully without a known own_user. diff -r 36eacc322e00 -r 1bf92da7a2a0 cli-runopts.c --- a/cli-runopts.c Mon Jul 28 23:23:49 2014 +0800 +++ b/cli-runopts.c Wed Aug 06 08:48:43 2014 -0500 @@ -684,7 +684,7 @@ pw = getpwuid(uid); 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);