Commit fb5b62a3 by rfkelly0

fs.expose.fuse: use flags_to_mode in create() method; thanks jtolds

parent 489e8e94
......@@ -185,7 +185,8 @@ class FSOperations(Operations):
# FUSE doesn't seem to pass correct mode information here - at least,
# I haven't figured out how to distinguish between "w" and "w+".
# Go with the most permissive option.
fh = self._reg_file(self.fs.open(path,"wb+"),path)
mode = flags_to_mode(fi.flags)
fh = self._reg_file(self.fs.open(path,mode),path)
fi.fh = fh
fi.keep_cache = 0
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment