diff 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
line wrap: on
line diff
--- a/cli-runopts.c	Tue Jun 23 21:48:13 2015 +0800
+++ b/cli-runopts.c	Mon Aug 03 20:45:04 2015 +0800
@@ -449,7 +449,7 @@
 
 #if defined(DROPBEAR_DEFAULT_CLI_AUTHKEY) && defined(ENABLE_CLI_PUBKEY_AUTH)
 	{
-		char *expand_path = expand_tilde(DROPBEAR_DEFAULT_CLI_AUTHKEY);
+		char *expand_path = expand_homedir_path(DROPBEAR_DEFAULT_CLI_AUTHKEY);
 		loadidentityfile(expand_path, 0);
 		m_free(expand_path);
 	}