]> git.eshelyaron.com Git - emacs.git/commitdiff
Don't report erroneous /content directory on Android 4.3 and earlier
authorPo Lu <luangruo@yahoo.com>
Thu, 9 May 2024 01:00:02 +0000 (09:00 +0800)
committerEshel Yaron <me@eshelyaron.com>
Thu, 9 May 2024 06:41:26 +0000 (08:41 +0200)
* src/androidvfs.c (android_content_opendir): Skip two, not one,
elements on Android <= 4.4.

(cherry picked from commit 8bc4292673dfc04ce781e242596779809f1a3634)

src/androidvfs.c

index 38bec7d349a9b354cff805c73dd84ad00c35b521..c326896d4c3de6817d1c7ef7389fe7824deaebb8 100644 (file)
@@ -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.  */