From 9fef973293ad4e706a35cbd2a24cc5cec3d39f6c Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 10 Mar 2014 16:50:56 -0400 Subject: [PATCH] patch out another file perm check that does not make sense on android --- standalone/android/openssh.patch | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/standalone/android/openssh.patch b/standalone/android/openssh.patch index 6cdb295960..996143d0ed 100644 --- a/standalone/android/openssh.patch +++ b/standalone/android/openssh.patch @@ -29,6 +29,18 @@ index 6623e0f..dd10253 100644 comparehome = 1; /* check the open file to avoid races */ +diff --git a/authfile.c b/authfile.c +index 7dd4496..00462e9 100644 +--- a/authfile.c ++++ b/authfile.c +@@ -613,6 +613,7 @@ int + key_perm_ok(int fd, const char *filename) + { + struct stat st; ++ return 1; /* check doesn't make sense on android */ + + if (fstat(fd, &st) < 0) + return 0; diff --git a/misc.c b/misc.c index 0bf2db6..4327d03 100644 --- a/misc.c