1 diff -ruw fuse-2.3.0.org/lib/mount.c fuse-2.3.0/lib/mount.c
2 --- fuse-2.3.0.org/lib/mount.c 2005-02-02 12:14:44.000000000 +0100
3 +++ fuse-2.3.0/lib/mount.c 2005-08-26 09:23:11.000000000 +0200
5 See the file COPYING.LIB.
9 +#ifdef HAVE_FEATURES_H
10 +#include <features.h>
12 +/* Remove this when config.h is updated with HAVE_FEATURES_H */
13 +#include <features.h>
16 #include "fuse_compat.h"
25 +#if defined(__UCLIBC__) && \
26 + (!defined(__ARCH_HAS_MMU__) && !defined(__UCLIBC_HAS_MMU__))
32 perror("fuse: fork() failed");
33 diff -ruw fuse-2.3.0.org/util/fusermount.c fuse-2.3.0/util/fusermount.c
34 --- fuse-2.3.0.org/util/fusermount.c 2005-05-17 18:54:17.000000000 +0200
35 +++ fuse-2.3.0/util/fusermount.c 2005-08-26 09:20:12.000000000 +0200
40 +#ifdef HAVE_FEATURES_H
41 +#include <features.h>
43 +/* Remove this when config.h is updated with HAVE_FEATURES_H */
44 +#include <features.h>
47 +/* Most embedded systems with uclibc have read-only root filesystem. Should
48 + * replace this into a parameter --disable-mtab instead */
49 +#define READONLY_MTAB 1
55 #define FUSE_COMMFD_ENV "_FUSE_COMMFD"
57 #define FUSE_DEV_OLD "/proc/fs/fuse/dev"
59 +/* /dev is mounted as devfs in OpenWRT, and device is created here */
60 +#define FUSE_DEV_NEW "/dev/misc/fuse"
62 #define FUSE_DEV_NEW "/dev/fuse"
64 #define FUSE_VERSION_FILE_OLD "/proc/fs/fuse/version"
65 #define FUSE_CONF "/etc/fuse.conf"
72 +#ifndef READONLY_MTAB
73 /* use a lock file so that multiple fusermount processes don't try and
74 modify the mtab file at once! */
75 static int lock_mtab()
81 +/* /dev is writeable on openwrt distribution */
82 +#define FUSE_TMP_DIRNAME "/dev/.fuse_devXXXXXX"
84 #define FUSE_TMP_DIRNAME "/tmp/.fuse_devXXXXXX"
86 #define FUSE_TMP_DEVNAME "/fuse"
88 static int try_open_new_temp(dev_t devnum, char **devp)
92 fd = try_open_fuse_device(devp);
93 + //fprintf(stderr, "open_fuse_device: try_open_fuse_device() ret=%d\n", fd);
100 +#if defined(__UCLIBC__) && \
101 + (!defined(__ARCH_HAS_MMU__) && !defined(__UCLIBC_HAS_MMU__))
108 - execl("/sbin/modprobe", "/sbin/modprobe", "fuse", NULL);
109 + execl("/sbin/insmod", "/sbin/insmod", "fuse", NULL);