From 1ad9bdad4da253109fa0258925b943bf86b2180d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Pierre=20Andr=C3=A9?= Date: Wed, 21 Mar 2012 19:26:00 +0100 Subject: [PATCH] Avoided interpreting UTIME_NOW and UTIME_OMIT from external fuse UTIME_NOW and UTIME_OMIT are needed for implementing utimensat() and futimens(2), but they cannot yet be used with external fuse. This patch is to avoid errors if they cannot be used, even with fuse 4.9 --- src/ntfs-3g.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ntfs-3g.c b/src/ntfs-3g.c index fce4b6ae..c14f4979 100644 --- a/src/ntfs-3g.c +++ b/src/ntfs-3g.c @@ -3247,11 +3247,11 @@ static void ntfs_fuse_destroy2(void *unused __attribute__((unused))) } static struct fuse_operations ntfs_3g_ops = { -#if defined(HAVE_UTIMENSAT) && (defined(FUSE_INTERNAL) || (FUSE_VERSION > 28)) +#if defined(HAVE_UTIMENSAT) && defined(FUSE_INTERNAL) /* * Accept UTIME_NOW and UTIME_OMIT in utimens, when - * using internal fuse or a fuse version since 2.9 - * (this field is not present in older versions) + * using internal fuse. There is no known way to implement + * this feature on the high fuse interface up to fuse 2.8 */ .flag_utime_omit_ok = 1, #endif