ignore mtab on android
authorDaniel Rosenberg <drosen@google.com>
Thu, 3 Oct 2024 21:52:22 +0000 (14:52 -0700)
committerBernd Schubert <bernd.schubert@fastmail.fm>
Fri, 11 Oct 2024 10:55:18 +0000 (12:55 +0200)
Updating the mtab on Android fails due to differences in toybox's mount
command. Setting IGNORE_MTAB avoids that issue.

Signed-off-by: Daniel Rosenberg <drosen@google.com>
lib/mount_util.c

index 02a84ef51a5b7c75c5552cd88952c5b6d7b0cdb8..089ca4548662d16ebb609086c2d227f5d2a2247a 100644 (file)
@@ -21,7 +21,7 @@
 #include <fcntl.h>
 #include <limits.h>
 #include <paths.h>
-#if !defined( __NetBSD__) && !defined(__FreeBSD__) && !defined(__DragonFly__)
+#if !defined( __NetBSD__) && !defined(__FreeBSD__) && !defined(__DragonFly__) && !defined(__ANDROID__)
 #include <mntent.h>
 #else
 #define IGNORE_MTAB