fix
authorMiklos Szeredi <miklos@szeredi.hu>
Fri, 21 Jan 2005 16:09:08 +0000 (16:09 +0000)
committerMiklos Szeredi <miklos@szeredi.hu>
Fri, 21 Jan 2005 16:09:08 +0000 (16:09 +0000)
ChangeLog
util/fusermount.c

index d0e0e9e083813e82bbca314feaae6897fd096a8a..a4bd92fce0e1314da6c13e5ccb1be010520875ab 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,8 @@
 
        * LIB: fix double reply in readdir operation
 
+       * fusermount: fix uid checking bug.  Patch by Adam Connell
+
 2005-01-20  Miklos Szeredi <miklos@szeredi.hu>
 
        * KERNEL: provide correct llseek semantics for fuse device (fixes
index 73893a1b4bec772aa9ae999a8983cebbc1f7443a..b826b83ba7cad4063cc34fcee3b27a05b9de38eb 100644 (file)
@@ -809,7 +809,7 @@ static int mount_fuse(const char *mnt, const char *opts)
 
     read_conf();
 
-    if (getuid != 0 && mount_max != -1) {
+    if (getuid() != 0 && mount_max != -1) {
         int mount_count = count_fuse_fs();
         if (mount_count >= mount_max) {
             fprintf(stderr, "%s: too many FUSE filesystems mounted; mount_max=N can be set in /etc/fuse.conf\n", progname);