aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Swetland <swetland@google.com>2010-12-04 18:22:32 -0800
committerBrian Swetland <swetland@google.com>2010-12-04 18:22:32 -0800
commit0f917a9e985bd21ff5fbe54815a464c3b16e2b98 (patch)
tree5fc08335b3bf1f2e0d4c6212f4a36f87c5828f48
parentd3a3a803df8f32e9ba26758b3a9d7fbd27a3dc9c (diff)
downloaddropbear-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.mk2
-rw-r--r--cli-main.c2
-rw-r--r--options.h2
3 files changed, 4 insertions, 2 deletions
diff --git a/Android.mk b/Android.mk
index b95d5dd..3a80e1f 100644
--- a/Android.mk
+++ b/Android.mk
@@ -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
diff --git a/cli-main.c b/cli-main.c
index 68cf023..106006b 100644
--- a/cli-main.c
+++ b/cli-main.c
@@ -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);
diff --git a/options.h b/options.h
index 0533f24..7625151 100644
--- a/options.h
+++ b/options.h
@@ -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