Merge pull request #1000 from ggtakec/master

Modified to discard _netdev option etc
This commit is contained in:
Takeshi Nakatani 2019-04-08 23:43:02 +09:00 committed by GitHub
commit b1bade37d8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5000,6 +5000,20 @@ static int my_fuse_opt_proc(void* data, const char* arg, int key, struct fuse_ar
use_wtf8 = true;
return 0;
}
// [NOTE]
// following option will be discarding, because these are not for fuse.
// (Referenced sshfs.c)
//
if(0 == strcmp(arg, "auto") ||
0 == strcmp(arg, "noauto") ||
0 == strcmp(arg, "user") ||
0 == strcmp(arg, "nouser") ||
0 == strcmp(arg, "users") ||
0 == strcmp(arg, "_netdev"))
{
return 0;
}
}
return 1;
}