aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorChris "Koying" Browet <cbro@semperpax.com>2013-10-20 16:18:30 +0200
committerChris "Koying" Browet <cbro@semperpax.com>2013-10-20 16:20:04 +0200
commit8a3db3e1c1686ce99f4f2fff465ae800ea3cb041 (patch)
tree0db4d367d8d95554bb5d6e1476ba615040e28cc2 /tools
parented1d9c7955091305a0ef77df39a2918139f9c13f (diff)
FIX: [droid] (re-)fix sftp/ssh
Diffstat (limited to 'tools')
-rw-r--r--tools/depends/target/libssh/android.patch15
1 files changed, 5 insertions, 10 deletions
diff --git a/tools/depends/target/libssh/android.patch b/tools/depends/target/libssh/android.patch
index f9e028bd38..96bafd8550 100644
--- a/tools/depends/target/libssh/android.patch
+++ b/tools/depends/target/libssh/android.patch
@@ -14,22 +14,17 @@
--- src/misc.c 2011-05-31 10:29:52.000000000 -0400
+++ src/misc.c 2013-01-03 00:37:37.652737345 -0500
-@@ -208,6 +208,14 @@
+@@ -208,6 +208,9 @@
char *ssh_get_user_home_dir(void) {
char *szPath = NULL;
+#ifdef ANDROID
-+ struct passwd *pwd = NULL;
-+ pwd = getpwuid(getuid());
-+ if ( pwd == NULL)
-+ return NULL;
-+
-+ szPath = strdup(pwd->pw_dir);
++ return strdup(getenv("HOME"));
+#else
struct passwd pwd;
struct passwd *pwdbuf;
char buf[NSS_BUFLEN_PASSWD];
-@@ -219,7 +227,7 @@
+@@ -219,7 +222,7 @@
}
szPath = strdup(pwd.pw_dir);
@@ -38,7 +33,7 @@
return szPath;
}
-@@ -233,6 +241,19 @@
+@@ -233,6 +236,19 @@
}
char *ssh_get_local_username(ssh_session session) {
@@ -58,7 +53,7 @@
struct passwd pwd;
struct passwd *pwdbuf;
char buf[NSS_BUFLEN_PASSWD];
-@@ -248,6 +269,7 @@
+@@ -248,6 +264,7 @@
name = strdup(pwd.pw_name);