diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2005-09-20 11:36:32 +0000 |
---|---|---|
committer | Miklos Szeredi <miklos@szeredi.hu> | 2005-09-20 11:36:32 +0000 |
commit | 670d07a4dd53af54df031b9a204cb1641463ae8f (patch) | |
tree | 29c76d62f56d8eb50d3722134e36964195120790 /util/fusermount.c | |
parent | d51fca1af73903f843077d2c284794e100f4da35 (diff) |
fix
Diffstat (limited to 'util/fusermount.c')
-rw-r--r-- | util/fusermount.c | 30 |
1 files changed, 1 insertions, 29 deletions
diff --git a/util/fusermount.c b/util/fusermount.c index 03760dd..4c92b46 100644 --- a/util/fusermount.c +++ b/util/fusermount.c @@ -779,35 +779,7 @@ static int try_open_fuse_device(char **devp) static int open_fuse_device(char **devp) { - int fd; - - if (1 -#ifndef AUTO_MODPROBE - && getuid() == 0 -#endif - ) { - int status; - pid_t pid; - - fd = try_open_fuse_device(devp); - if (fd >= 0) - return fd; - -#ifndef USE_UCLIBC - pid = fork(); -#else - pid = vfork(); -#endif - if (pid == 0) { - setuid(0); - execl("/sbin/modprobe", "/sbin/modprobe", "fuse", NULL); - exit(1); - } - if (pid != -1) - waitpid(pid, &status, 0); - } - - fd = try_open_fuse_device(devp); + int fd = try_open_fuse_device(devp); if (fd >= 0) return fd; |