From 27af48b9de3a15f16cce7747780ae37843ccac26 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Sat, 4 Oct 2003 17:31:38 +0000 Subject: fixes --- util/fusermount.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'util/fusermount.c') diff --git a/util/fusermount.c b/util/fusermount.c index 754b6a9..0f94c7e 100644 --- a/util/fusermount.c +++ b/util/fusermount.c @@ -151,7 +151,7 @@ static int remove_mount(const char *mnt) } } if(remove) { - res = umount(mnt); + res = umount2(mnt, 2); /* Lazy umount */ if(res == -1) { fprintf(stderr, "%s: failed to unmount %s: %s\n", progname, mnt, strerror(errno)); @@ -353,7 +353,7 @@ static int mount_fuse(const char *mnt, int flags) pid_t pid = fork(); if(pid == 0) { setuid(0); - execl("/sbin/modprobe", "modprobe", "fuse", NULL); + execl("/sbin/modprobe", "/sbin/modprobe", "fuse", NULL); exit(1); } if(pid != -1) -- cgit v1.2.3