setuid_fusermount:
@echo "Attempting to use sudo to make util/fusermount setuid root"
@echo "If this fails, set permissions manually and re-run make test"
- test $$(ls -n util/fusermount | awk 'NR==1 {print $$3}') -eq 0 || \
- sudo chown root util/fusermount
- test -u util/fusermount || \
- sudo chmod u+s util/fusermount
+ test $$(ls -n util/fusermount3 | awk 'NR==1 {print $$3}') -eq 0 || \
+ sudo chown root util/fusermount3
+ test -u util/fusermount3 || \
+ sudo chmod u+s util/fusermount3
# If we are not root, util/fusermount needs to be setuid root
# for tests to work.
def cleanup(mnt_dir):
# Don't bother trying Valgrind if things already went wrong
- subprocess.call([pjoin(basename, 'util', 'fusermount'),
+ subprocess.call([pjoin(basename, 'util', 'fusermount3'),
'-z', '-u', mnt_dir],
stdout=subprocess.DEVNULL,
stderr=subprocess.STDOUT)
else:
cmdline = []
- cmdline = cmdline + [ pjoin(basename, 'util', 'fusermount'),
+ cmdline = cmdline + [ pjoin(basename, 'util', 'fusermount3'),
'-z', '-u', mnt_dir ]
subprocess.check_call(cmdline)
assert not os.path.ismount(mnt_dir)
## Process this file with automake to produce Makefile.in
-bin_PROGRAMS = fusermount
-noinst_PROGRAMS = mount.fuse
+bin_PROGRAMS = fusermount3
+noinst_PROGRAMS = mount.fuse3
# we re-use mount_util.c from the library, but do want to keep ourself
# as stand-alone as possible. in order to make an out-of-source build
# possible, we "generate" the file from its original location by
# copying it over.
-fusermount_SOURCES = fusermount.c mount_util.c
-fusermount_CPPFLAGS = -I$(top_srcdir)/lib
+fusermount3_SOURCES = fusermount.c mount_util.c
+fusermount3_CPPFLAGS = -I$(top_srcdir)/lib
BUILT_SOURCES = mount_util.c
mount_util.c: $(top_srcdir)/lib/mount_util.c
@cp $(top_srcdir)/lib/mount_util.c .
-mount_fuse_SOURCES = mount.fuse.c
+mount_fuse3_SOURCES = mount.fuse.c
install-exec-hook:
- -chmod u+s $(DESTDIR)$(bindir)/fusermount
+ -chmod u+s $(DESTDIR)$(bindir)/fusermount3
@if test ! -e $(DESTDIR)/dev/fuse; then \
$(MKDIR_P) $(DESTDIR)/dev; \
echo "mknod $(DESTDIR)/dev/fuse -m 0666 c 10 229 || true"; \
install-exec-local:
$(MKDIR_P) $(DESTDIR)$(MOUNT_FUSE_PATH)
- $(INSTALL_PROGRAM) $(builddir)/mount.fuse $(DESTDIR)$(MOUNT_FUSE_PATH)/mount.fuse
+ $(INSTALL_PROGRAM) $(builddir)/mount.fuse3 $(DESTDIR)$(MOUNT_FUSE_PATH)/mount.fuse3
$(MKDIR_P) $(DESTDIR)$(INIT_D_PATH)
$(INSTALL_SCRIPT) $(srcdir)/init_script $(DESTDIR)$(INIT_D_PATH)/fuse
@if test -x /usr/sbin/update-rc.d; then \
$(INSTALL_DATA) $(srcdir)/udev.rules $(DESTDIR)$(UDEV_RULES_PATH)/99-fuse.rules
uninstall-local:
- rm -f $(DESTDIR)$(MOUNT_FUSE_PATH)/mount.fuse
+ rm -f $(DESTDIR)$(MOUNT_FUSE_PATH)/mount.fuse3
rm -f $(DESTDIR)$(UDEV_RULES_PATH)/99-fuse.rules
rm -f $(DESTDIR)$(INIT_D_PATH)/fuse
@if test -x /usr/sbin/update-rc.d; then \