external/e2fsprogs
修订版 | 9e4aa3a4270347e2abadb52610bcc3658e086b40 (tree) |
---|---|
时间 | 2019-01-25 18:22:43 |
作者 | Chih-Wei Huang <cwhuang@linu...> |
Commiter | Chih-Wei Huang |
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.
@@ -244,7 +244,7 @@ static errcode_t check_mntent(const char *file, int *mount_flags, | ||
244 | 244 | if (retval == 0 && (*mount_flags != 0)) |
245 | 245 | return 0; |
246 | 246 | #endif /* __linux__ */ |
247 | -#if defined(MOUNTED) || defined(_PATH_MOUNTED) | |
247 | +#if !defined(ANDROID) && (defined(MOUNTED) || defined(_PATH_MOUNTED)) | |
248 | 248 | #ifndef MOUNTED |
249 | 249 | #define MOUNTED _PATH_MOUNTED |
250 | 250 | #endif /* MOUNTED */ |