The fuse_version() library function incorrectly returns FUSE_USE_VERSION. This 
macro is intended to be used by file systems to indicate the version of the 
libfuse API to compile against. This change returns the highest version of the 
API that libfuse supports. Both macros have the same value so this change is 
pedantic only.

Index: fuse.c
===================================================================
RCS file: /cvs/src/lib/libfuse/fuse.c,v
retrieving revision 1.32
diff -u -p -r1.32 fuse.c
--- fuse.c      2 Nov 2017 13:55:37 -0000       1.32
+++ fuse.c      4 Nov 2017 00:30:24 -0000
@@ -362,7 +362,7 @@ dump_help(void)
 static void
 dump_version(void)
 {
-       fprintf(stderr, "FUSE library version %i\n", FUSE_USE_VERSION);
+       fprintf(stderr, "FUSE library version %i\n", FUSE_VERSION);
 }
 
 static int

Reply via email to