001-fuseint-fix-path-mounted-on-musl.patch 915 B

123456789101112131415161718192021222324252627282930
  1. Index: ntfs-3g-2014.2.15-1-fuseint/libfuse-lite/fusermount.c
  2. ===================================================================
  3. --- ntfs-3g-2014.2.15-1-fuseint.orig/libfuse-lite/fusermount.c
  4. +++ ntfs-3g-2014.2.15-1-fuseint/libfuse-lite/fusermount.c
  5. @@ -36,6 +36,10 @@
  6. #define FUSE_DEV_NEW "/dev/fuse"
  7. +#ifndef _PATH_MOUNTED
  8. +#define _PATH_MOUNTED "/proc/mounts"
  9. +#endif
  10. +
  11. #ifndef MS_DIRSYNC
  12. #define MS_DIRSYNC 128
  13. #endif
  14. Index: ntfs-3g-2014.2.15-1-fuseint/libfuse-lite/mount_util.c
  15. ===================================================================
  16. --- ntfs-3g-2014.2.15-1-fuseint.orig/libfuse-lite/mount_util.c
  17. +++ ntfs-3g-2014.2.15-1-fuseint/libfuse-lite/mount_util.c
  18. @@ -255,6 +255,10 @@ int fuse_mnt_check_fuseblk(void)
  19. #else /* __SOLARIS__ */
  20. +#ifndef _PATH_MOUNTED
  21. +#define _PATH_MOUNTED "/proc/mounts"
  22. +#endif /* _PATH_MOUNTED */
  23. +
  24. static int mtab_needs_update(const char *mnt)
  25. {
  26. int res;