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

Added suid option

Added suid option to enable adding suid to mount options sent to fuse.
This commit is contained in:
Paul Robello 2021-03-02 23:29:05 -08:00 committed by GitHub
parent 1e8a7fc104
commit 5ac85c424f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -194,6 +194,7 @@ class Fuse extends Nanoresource {
if (this.opts.modules) options.push('modules=' + this.opts.modules) if (this.opts.modules) options.push('modules=' + this.opts.modules)
if (this.opts.useIno) options.push('use_ino') if (this.opts.useIno) options.push('use_ino')
if (this.opts.dev) options.push('dev') if (this.opts.dev) options.push('dev')
if (this.opts.suid) options.push('suid')
if (this.opts.displayFolder && IS_OSX) { // only works on osx if (this.opts.displayFolder && IS_OSX) { // only works on osx
options.push('volname=' + path.basename(this.opts.name || this.mnt)) options.push('volname=' + path.basename(this.opts.name || this.mnt))