[Reproducible-commits] [disorderfs] 02/06: Use default_permissions
Andrew Ayer
agwa at andrewayer.name
Tue Sep 22 03:34:19 UTC 2015
This is an automated email from the git hooks/post-receive script.
agwa-guest pushed a commit to branch master
in repository disorderfs.
commit 207f3b5b67bbca287b07bc738ca54029bd58be98
Author: Andrew Ayer <agwa at andrewayer.name>
Date: Mon Sep 21 17:15:45 2015 -0700
Use default_permissions
This means we don't have to implement access ourselves, which makes
multi-user support easier since access has really annoying rules with
effective vs real UID/GID.
---
disorderfs.cpp | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/disorderfs.cpp b/disorderfs.cpp
index e41547a..62968a8 100644
--- a/disorderfs.cpp
+++ b/disorderfs.cpp
@@ -244,9 +244,6 @@ int main (int argc, char** argv)
disorderfs_fuse_operations.fsyncdir = [] (const char* path, int datasync, struct fuse_file_info* info) -> int {
};
*/
- disorderfs_fuse_operations.access = [] (const char* path, int mode) -> int {
- return wrap(access((root + path).c_str(), mode));
- };
disorderfs_fuse_operations.create = [] (const char* path, mode_t mode, struct fuse_file_info* info) -> int {
// XXX: use info->flags?
const int fd{open((root + path).c_str(), info->flags | O_CREAT, mode)};
@@ -318,7 +315,7 @@ int main (int argc, char** argv)
// Add some of our own hard-coded FUSE options:
fuse_opt_add_arg(&fargs, "-o");
- fuse_opt_add_arg(&fargs, "direct_io,atomic_o_trunc"); // XXX: other mount options?
+ fuse_opt_add_arg(&fargs, "direct_io,atomic_o_trunc,default_permissions"); // XXX: other mount options?
fuse_opt_add_arg(&fargs, bare_arguments[1].c_str());
return fuse_main(fargs.argc, fargs.argv, &disorderfs_fuse_operations, nullptr);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/disorderfs.git
More information about the Reproducible-commits
mailing list