comparison cli-runopts.c @ 1134:36557295418e

change DROPBEAR_DEFAULT_CLI_AUTHKEY to just prepend homedir rather than doing ~ expansion
author Matt Johnston <matt@ucc.asn.au>
date Mon, 03 Aug 2015 20:45:04 +0800
parents ad14e2e71190
children 67d8a904f5a9
comparison
equal deleted inserted replaced
1128:a9e074b78cd5 1134:36557295418e
447 } 447 }
448 #endif 448 #endif
449 449
450 #if defined(DROPBEAR_DEFAULT_CLI_AUTHKEY) && defined(ENABLE_CLI_PUBKEY_AUTH) 450 #if defined(DROPBEAR_DEFAULT_CLI_AUTHKEY) && defined(ENABLE_CLI_PUBKEY_AUTH)
451 { 451 {
452 char *expand_path = expand_tilde(DROPBEAR_DEFAULT_CLI_AUTHKEY); 452 char *expand_path = expand_homedir_path(DROPBEAR_DEFAULT_CLI_AUTHKEY);
453 loadidentityfile(expand_path, 0); 453 loadidentityfile(expand_path, 0);
454 m_free(expand_path); 454 m_free(expand_path);
455 } 455 }
456 #endif 456 #endif
457 457