patch out another file perm check that does not make sense on android

This commit is contained in:
Joey Hess 2014-03-10 16:50:56 -04:00
parent 0d983c4fb2
commit 9fef973293

View file

@ -29,6 +29,18 @@ index 6623e0f..dd10253 100644
comparehome = 1; comparehome = 1;
/* check the open file to avoid races */ /* 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 diff --git a/misc.c b/misc.c
index 0bf2db6..4327d03 100644 index 0bf2db6..4327d03 100644
--- a/misc.c --- a/misc.c