Fix improper #ifdef conditions around FUSE_CAP_IOCTL_DIR.
The capability actually appeared in FUSE 2.9, not 2.8. However in order to maintain similarity to earlier #ifdef:s, we simpy check if FUSE_CAP_IOCTL_DIR is defined rather than checking the FUSE version.edge.strict_endians
parent
d0cb2ea735
commit
1ebf77f769
|
@ -588,9 +588,9 @@ static void ntfs_init(void *userdata __attribute__((unused)),
|
|||
>= SAFE_CAPACITY_FOR_BIG_WRITES))
|
||||
conn->want |= FUSE_CAP_BIG_WRITES;
|
||||
#endif
|
||||
#if FUSE_VERSION >= 28
|
||||
#ifdef FUSE_CAP_IOCTL_DIR
|
||||
conn->want |= FUSE_CAP_IOCTL_DIR;
|
||||
#endif /* FUSE_VERSION >= 28 */
|
||||
#endif /* defined(FUSE_CAP_IOCTL_DIR) */
|
||||
}
|
||||
|
||||
static int ntfs_fuse_getstat(struct SECURITY_CONTEXT *scx,
|
||||
|
|
|
@ -657,9 +657,9 @@ static void *ntfs_init(struct fuse_conn_info *conn)
|
|||
>= SAFE_CAPACITY_FOR_BIG_WRITES))
|
||||
conn->want |= FUSE_CAP_BIG_WRITES;
|
||||
#endif
|
||||
#if FUSE_VERSION >= 28
|
||||
#ifdef FUSE_CAP_IOCTL_DIR
|
||||
conn->want |= FUSE_CAP_IOCTL_DIR;
|
||||
#endif /* FUSE_VERSION >= 28 */
|
||||
#endif /* defined(FUSE_CAP_IOCTL_DIR) */
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue