Android-x86
Fork
Spenden

  • R/O
  • HTTP
  • SSH
  • HTTPS

external-e2fsprogs: Commit

external/e2fsprogs


Commit MetaInfo

Revision9e4aa3a4270347e2abadb52610bcc3658e086b40 (tree)
Zeit2019-01-25 18:22:43
AutorChih-Wei Huang <cwhuang@linu...>
CommiterChih-Wei Huang

Log Message

Android: avoid the second check_mntent_file()

It's usually used to check /etc/mtab but Android doesn't have the file.
The second check is unnecessary.

Ändern Zusammenfassung

Diff

--- a/lib/ext2fs/ismounted.c
+++ b/lib/ext2fs/ismounted.c
@@ -244,7 +244,7 @@ static errcode_t check_mntent(const char *file, int *mount_flags,
244244 if (retval == 0 && (*mount_flags != 0))
245245 return 0;
246246 #endif /* __linux__ */
247-#if defined(MOUNTED) || defined(_PATH_MOUNTED)
247+#if !defined(ANDROID) && (defined(MOUNTED) || defined(_PATH_MOUNTED))
248248 #ifndef MOUNTED
249249 #define MOUNTED _PATH_MOUNTED
250250 #endif /* MOUNTED */
Show on old repository browser