+2002-12-03 Miklos Szeredi <mszeredi@inf.bme.hu>
+
+ * Added _FILE_OFFSET_BITS=64 define to fuse.h. Note, that this is
+ an incompatible interface change.
+
2002-10-28 Miklos Szeredi <mszeredi@inf.bme.hu>
* Portablility fix (bug reported by C. Chris Erway)
AC_ARG_ENABLE(example,
[ --enable-example Compile with examples ])
+subdirs="include patch"
+
if test "$enable_kernel_module" != "no"; then
AC_MSG_CHECKING([kernel source directory])
kernelsrc=
fi
fi
AC_MSG_RESULT([$kernelsrc])
-fi
-
-oldcc=$CC
-oldcross_compiling=$cross_compiling
-if test "$cross_compiling" = yes; then
- CC=gcc
- cross_compiling=no
-fi
-if test "$enable_kernel_module" != "no"; then
AC_MSG_CHECKING([kernel source version])
kernsrcver=`sed -ne '/^VERSION = \(.*\)/{s//\1/;p;q;}' $kernelsrc/Makefile`
kernsrcver="$kernsrcver.`sed -ne '/^PATCHLEVEL = \(.*\)/{s//\1/;p;q;}' $kernelsrc/Makefile`"
*** configure the kernel before running this script])
fi
AC_MSG_RESULT([$kernsrcver])
-fi
-CC=$oldcc
-cross_compiling=$oldcross_compiling
-subdirs="include patch"
-
-if test "$enable_kernel_module" != "no"; then
KERNINCLUDE=$kernelsrc/include
AC_SUBST(KERNINCLUDE)
kmoduledir=/lib/modules/$kernsrcver
/* This file defines the library interface of FUSE */
+/* Now and forever: this interface uses 64 bit off_t */
+#define _FILE_OFFSET_BITS 64
+
#include <sys/types.h>
#include <sys/stat.h>
#include <utime.h>
{
char buf[PATH_MAX];
- /* Resolving at unmount can only be done very carefully, not touching
- the mountpoint... So for the moment it's not done. */
- if(unmount)
- return strdup(orig);
+ if(unmount) {
+ /* Resolving at unmount can only be done very carefully, not touching
+ the mountpoint... So for the moment it's not done.
+
+ Just remove trailing slashes instead.
+ */
+ char *dst = strdup(orig);
+ char *end;
+ for(end = dst + strlen(dst) - 1; end > dst && *end == '/'; end --)
+ *end = '\0';
+
+ return dst;
+ }
if(realpath(orig, buf) == NULL) {
fprintf(stderr, "%s: Bad mount point %s: %s\n", progname, orig,