diff options
author | helg <helg@cvs.openbsd.org> | 2018-06-19 11:27:55 +0000 |
---|---|---|
committer | helg <helg@cvs.openbsd.org> | 2018-06-19 11:27:55 +0000 |
commit | 57436230755cc8f123e77d7f7ac1a438cba5e871 (patch) | |
tree | 64871dbb7aef157778e2b65d75d7007f344e5c7c /lib/libfuse/fuse.c | |
parent | 776ddb05eea331f13e13a11cd92e783bbfbc0a91 (diff) |
Send the calling thread id, effective uid and gid, and umask to the
FUSE file system. fuse_get_context(3) will now return the correct
values.
ok mpi@
Diffstat (limited to 'lib/libfuse/fuse.c')
-rw-r--r-- | lib/libfuse/fuse.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libfuse/fuse.c b/lib/libfuse/fuse.c index d0551a84f0d..9ed4079c5ba 100644 --- a/lib/libfuse/fuse.c +++ b/lib/libfuse/fuse.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fuse.c,v 1.45 2018/05/22 12:52:14 helg Exp $ */ +/* $OpenBSD: fuse.c,v 1.46 2018/06/19 11:27:54 helg Exp $ */ /* * Copyright (c) 2013 Sylvestre Gallon <ccna.syl@gmail.com> * @@ -228,10 +228,10 @@ fuse_loop(struct fuse *fuse) } ctx.fuse = fuse; - ctx.uid = fuse->conf.uid; - ctx.gid = fuse->conf.gid; - ctx.pid = fuse->conf.pid; - ctx.umask = fuse->conf.umask; + ctx.uid = fbuf.fb_uid; + ctx.gid = fbuf.fb_gid; + ctx.pid = fbuf.fb_tid; + ctx.umask = fbuf.fb_umask; ctx.private_data = fuse->private_data; ictx = &ctx; |