diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2014-07-15 16:03:12 +0200 |
---|---|---|
committer | Miklos Szeredi <mszeredi@suse.cz> | 2014-07-15 16:03:12 +0200 |
commit | 52f46cfa682e284835807bcd60086a71b4365e91 (patch) | |
tree | e89aa72b22cd73da48b7c3d048640e454870b189 /lib/mount.c | |
parent | 780d47bbea52f1760908653f131063229053896b (diff) |
fusermount, libfuse: send value as unsigned in "user_id=" and "group_id="
...options. Uids/gids larger than 2147483647 would result in EINVAL when
mounting the filesystem. This also needs a fix in the kernel.
Diffstat (limited to 'lib/mount.c')
-rw-r--r-- | lib/mount.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mount.c b/lib/mount.c index fb9231a..111b32b 100644 --- a/lib/mount.c +++ b/lib/mount.c @@ -462,7 +462,7 @@ static int fuse_mount_sys(const char *mnt, struct mount_opts *mo, if (!O_CLOEXEC) fcntl(fd, F_SETFD, FD_CLOEXEC); - snprintf(tmp, sizeof(tmp), "fd=%i,rootmode=%o,user_id=%i,group_id=%i", + snprintf(tmp, sizeof(tmp), "fd=%i,rootmode=%o,user_id=%u,group_id=%u", fd, stbuf.st_mode & S_IFMT, getuid(), getgid()); res = fuse_opt_add_opt(&mo->kernel_opts, tmp); |