From 0111f9dbe43a8c4ae516d3eb470186770894c5bf Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Fri, 22 Apr 2005 12:04:55 +0000 Subject: fix --- lib/helper.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/helper.c') 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) { -- cgit v1.2.3