diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2005-04-22 12:04:55 +0000 |
---|---|---|
committer | Miklos Szeredi <miklos@szeredi.hu> | 2005-04-22 12:04:55 +0000 |
commit | 0111f9dbe43a8c4ae516d3eb470186770894c5bf (patch) | |
tree | 6112c59cbfcebc262d88ae10d1e06d92e0fcd142 /lib/helper.c | |
parent | d001bf9915e651dd301c29aafe0b7e777a1ae7cf (diff) | |
download | libfuse-0111f9dbe43a8c4ae516d3eb470186770894c5bf.tar.gz |
fix
Diffstat (limited to 'lib/helper.c')
-rw-r--r-- | lib/helper.c | 6 |
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) { |