comparison cli-runopts.c @ 959:f92394f3f332

Merge pull request #2 from iquaba/patch-1 Try without identifying current user
author Matt Johnston <matt@ucc.asn.au>
date Wed, 06 Aug 2014 22:04:49 +0800
parents 1bf92da7a2a0
children a4032b946355
comparison
equal deleted inserted replaced
955:36eacc322e00 959:f92394f3f332
682 682
683 uid = getuid(); 683 uid = getuid();
684 684
685 pw = getpwuid(uid); 685 pw = getpwuid(uid);
686 if (pw == NULL || pw->pw_name == NULL) { 686 if (pw == NULL || pw->pw_name == NULL) {
687 dropbear_exit("Unknown own user"); 687 dropbear_log(LOG_INFO, "Warning: failed to identify current user. Trying anyway.");
688 } 688 }
689 689
690 cli_opts.own_user = m_strdup(pw->pw_name); 690 cli_opts.own_user = m_strdup(pw->pw_name);
691 } 691 }
692 692