summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo Lu <luangruo@yahoo.com>2024-05-09 09:00:02 +0800
committerPo Lu <luangruo@yahoo.com>2024-05-09 09:02:03 +0800
commit8bc4292673dfc04ce781e242596779809f1a3634 (patch)
treef55f270cf904e80194abb3b408eef326180b46a9
parent36c68e7e34df996bbde4cc82c04ea1619349b64a (diff)
downloademacs-8bc4292673dfc04ce781e242596779809f1a3634.tar.gz
Don't report erroneous /content directory on Android 4.3 and earlier
* src/androidvfs.c (android_content_opendir): Skip two, not one, elements on Android <= 4.4.
-rw-r--r--src/androidvfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/androidvfs.c b/src/androidvfs.c
index 38bec7d349a..c326896d4c3 100644
--- a/src/androidvfs.c
+++ b/src/androidvfs.c
@@ -2813,7 +2813,7 @@ android_content_opendir (struct android_vnode *vnode)
/* Android 4.3 and earlier don't support /content/by-authority. */
if (api < 19)
- dir->next_name++;
+ dir->next_name += 2;
/* Link this stream onto the list of all content directory
streams. */