From 773d4aea20b13a0355db6dce9c04a8388ff2258c Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Fri, 21 Jan 2005 16:09:08 +0000 Subject: [PATCH] fix --- ChangeLog | 2 ++ util/fusermount.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d0e0e9e..a4bd92f 100644 --- 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 * KERNEL: provide correct llseek semantics for fuse device (fixes diff --git a/util/fusermount.c b/util/fusermount.c index 73893a1..b826b83 100644 --- a/util/fusermount.c +++ b/util/fusermount.c @@ -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); -- 2.30.2