1
0
mirror of https://github.com/fuse-friends/fuse-native synced 2024-10-27 18:34:01 +00:00

Forward read only flag to fuse opts

This commit is contained in:
François Leurent 2020-01-25 11:57:14 +01:00 committed by GitHub
parent 9528eeff48
commit f0098a39cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -171,6 +171,7 @@ class Fuse extends Nanoresource {
if ((/\*|(^,)fuse-bindings(,$)/.test(process.env.DEBUG)) || this.opts.debug) options.push('debug')
if (this.opts.allowOther) options.push('allow_other')
if (this.opts.allowRoot) options.push('allow_root')
if (this.opts.ro) options.push('ro')
if (this.opts.autoUnmount) options.push('auto_unmount')
if (this.opts.defaultPermissions) options.push('default_permissions')
if (this.opts.blkdev) options.push('blkdev')