diff options
author | Brian Swetland <swetland@google.com> | 2010-12-04 18:22:32 -0800 |
---|---|---|
committer | Brian Swetland <swetland@google.com> | 2010-12-04 18:22:32 -0800 |
commit | 0f917a9e985bd21ff5fbe54815a464c3b16e2b98 (patch) | |
tree | 5fc08335b3bf1f2e0d4c6212f4a36f87c5828f48 | |
parent | d3a3a803df8f32e9ba26758b3a9d7fbd27a3dc9c (diff) | |
download | dropbear-0f917a9e985bd21ff5fbe54815a464c3b16e2b98.tar.gz |
make this a bit more usable
- ssh: set HOME=/data/local/ so .ssh might be writable
- scp: look for ssh at /system/xbin/ssh where it is installed
- ssh: set tag to debug to match scp (scp doesn't work without ssh)
Change-Id: I8086cb8091ad4156777f511fe6dc9aac7d3fa52f
-rw-r--r-- | Android.mk | 2 | ||||
-rw-r--r-- | cli-main.c | 2 | ||||
-rw-r--r-- | options.h | 2 |
3 files changed, 4 insertions, 2 deletions
@@ -24,7 +24,7 @@ LOCAL_SRC_FILES+=netbsd_getpass.c LOCAL_STATIC_LIBRARIES := libtommath libtomcrypt LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES) -LOCAL_MODULE_TAGS := eng +LOCAL_MODULE_TAGS := debug LOCAL_MODULE := ssh LOCAL_C_INCLUDES += $(LOCAL_PATH)/libtommath LOCAL_C_INCLUDES += $(LOCAL_PATH)/libtomcrypt/src/headers @@ -47,6 +47,8 @@ int main(int argc, char ** argv) { _dropbear_exit = cli_dropbear_exit; _dropbear_log = cli_dropbear_log; + putenv("HOME=/data/local"); + disallow_core(); cli_getopts(argc, argv); @@ -203,7 +203,7 @@ etc) slower (perhaps by 50%). Recommended for most small systems. */ /* This is used by the scp binary when used as a client binary. If you're * not using the Dropbear client, you'll need to change it */ -#define _PATH_SSH_PROGRAM "/system/bin/ssh" +#define _PATH_SSH_PROGRAM "/system/xbin/ssh" /* Whether to log commands executed by a client. This only logs the * (single) command sent to the server, not what a user did in a |