Add HFS+ to filesystem whitelist (#347)
author1c7718e7 <shirokovMartin@gmail.com>
Sat, 9 Mar 2019 10:39:32 +0000 (12:39 +0200)
committerNikolaus Rath <Nikolaus@rath.org>
Sat, 9 Mar 2019 10:39:32 +0000 (10:39 +0000)
ChangeLog.rst
util/fusermount.c

index f01de7fab001e0dd08ea6b7e4ba0174b9d52ddc3..422ff5a6a7ee9b172afbb5ac83ac84bc22d25e54 100644 (file)
@@ -4,6 +4,8 @@ Unreleased Changes
 * Fixed a memory leak in `examples/passthrough_ll.c`.
 * Added OpenAFS to whitelist (so users can now mount FUSE filesystems
   on mountpoints within OpenAFS filesystems).
+* Added HFS+ to whitelist (so users can now mount FUSE filesystems
+  on mountpoints within HFS+ filesystems).
 
 
 libfuse 3.4.1 (2018-12-22)
index ebc06899277cfbf1a21e288564ce76043a2b7dc4..7f9b7cd80b8c65dece6a35b58730798878931086 100644 (file)
@@ -1040,6 +1040,7 @@ static int check_perm(const char **mntp, struct stat *stbuf, int *mountpoint_fd)
                0x24051905 /* UBIFS_SUPER_MAGIC */,
                0x58465342 /* XFS_SB_MAGIC */,
                0x2FC12FC1 /* ZFS_SUPER_MAGIC */,
+               0x0000482b /* HFSPLUS_SUPER_MAGIC */,
        };
        for (i = 0; i < sizeof(f_type_whitelist)/sizeof(f_type_whitelist[0]); i++) {
                if (f_type_whitelist[i] == fs_buf.f_type)