Mercurial > dropbear
comparison cli-runopts.c @ 960:9e7b0810a4a2
merge
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Wed, 06 Aug 2014 22:08:16 +0800 |
parents | 1bf92da7a2a0 |
children | a4032b946355 |
comparison
equal
deleted
inserted
replaced
957:c4f138dae2fd | 960:9e7b0810a4a2 |
---|---|
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 |