diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2003-10-04 17:31:38 +0000 |
---|---|---|
committer | Miklos Szeredi <miklos@szeredi.hu> | 2003-10-04 17:31:38 +0000 |
commit | 27af48b9de3a15f16cce7747780ae37843ccac26 (patch) | |
tree | 39080f428b1cac1c80da10b2fe71ff26a8adc17e /util | |
parent | 02ceb11c60d865a69c7f86a95c176b510779c033 (diff) |
fixes
Diffstat (limited to 'util')
-rw-r--r-- | util/fusermount.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) |