aboutsummaryrefslogtreecommitdiffstats
path: root/lib/helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/helper.c')
-rw-r--r--lib/helper.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/helper.c b/lib/helper.c
index 42fe44c..d1a3d1f 100644
--- a/lib/helper.c
+++ b/lib/helper.c
@@ -138,8 +138,12 @@ static int add_options(char **lib_optp, char **kernel_optp, const char *opts)
while((opt = strsep(&s, ",")) != NULL) {
int res;
- if (fuse_is_lib_option(opt))
+ if (fuse_is_lib_option(opt)) {
res = add_option_to(opt, lib_optp);
+ /* Compatibility hack */
+ if (strcmp(opt, "allow_root") == 0 && res != -1)
+ res = add_option_to("allow_other", kernel_optp);
+ }
else
res = add_option_to(opt, kernel_optp);
if (res == -1) {