fix
diff --git a/ChangeLog b/ChangeLog
index b648503..85922f7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-09-15 Miklos Szeredi <miklos@szeredi.hu>
+
+ * Install UDEV rule file, so /dev/fuse is created with mode 0666.
+ Help from Jens M. Noedler.
+
2005-09-14 Miklos Szeredi <miklos@szeredi.hu>
* Add memory cleanup on thread exit
diff --git a/configure.in b/configure.in
index d213f07..5a8bc2f 100644
--- a/configure.in
+++ b/configure.in
@@ -55,6 +55,10 @@
MOUNT_FUSE_PATH=/sbin
fi
AC_SUBST(MOUNT_FUSE_PATH)
+if test -z "$UDEV_RULES_PATH"; then
+ UDEV_RULES_PATH=/etc/udev/rules.d
+fi
+AC_SUBST(UDEV_RULES_PATH)
AC_SUBST(subdirs2)
diff --git a/util/Makefile.am b/util/Makefile.am
index 54edccb..8de7459 100644
--- a/util/Makefile.am
+++ b/util/Makefile.am
@@ -13,12 +13,17 @@
mknod $(DESTDIR)/dev/fuse -m 0666 c 10 229; \
fi
-EXTRA_DIST = mount.fuse
+EXTRA_DIST = mount.fuse udev.rules
MOUNT_FUSE_PATH = @MOUNT_FUSE_PATH@
+UDEV_RULES_PATH = @UDEV_RULES_PATH@
install-exec-local:
$(INSTALL_PROGRAM) $(srcdir)/mount.fuse $(DESTDIR)$(MOUNT_FUSE_PATH)/mount.fuse
+install-data-local:
+ $(INSTALL_DATA) $(srcdir)/udev.rules $(DESTDIR)$(UDEV_RULES_PATH)/40-fuse.rules
+
uninstall-local:
rm -f $(DESTDIR)$(MOUNT_FUSE_PATH)/mount.fuse
+ rm -f $(DESTDIR)$(UDEV_RULES_PATH)/40-fuse.rules
diff --git a/util/udev.rules b/util/udev.rules
new file mode 100644
index 0000000..3c37cbc
--- /dev/null
+++ b/util/udev.rules
@@ -0,0 +1 @@
+KERNEL="fuse", MODE="0666"