mirror of
https://git.sr.ht/~cismonx/bookmarkfs
synced 2025-06-07 19:58:50 +00:00
frontend: silently ignore empty subopts
This commit is contained in:
parent
bced141b98
commit
bd80cbf2c1
3 changed files with 5 additions and 2 deletions
|
@ -431,6 +431,9 @@ parse_opts (
|
||||||
bookmarkfs_opts_add(&info->handler_opts, opt);
|
bookmarkfs_opts_add(&info->handler_opts, opt);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case '\0':
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
return SUBOPT_ERR_BAD_KEY();
|
return SUBOPT_ERR_BAD_KEY();
|
||||||
}
|
}
|
||||||
|
|
|
@ -92,7 +92,7 @@ parse_opts (
|
||||||
char *opt = SUBOPT_STR;
|
char *opt = SUBOPT_STR;
|
||||||
if (opt[0] == '@') {
|
if (opt[0] == '@') {
|
||||||
bookmarkfs_opts_add(&ctx->backend_conf.opts, opt + 1);
|
bookmarkfs_opts_add(&ctx->backend_conf.opts, opt + 1);
|
||||||
} else {
|
} else if (opt[0] != '\0') {
|
||||||
return SUBOPT_ERR_BAD_KEY();
|
return SUBOPT_ERR_BAD_KEY();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -459,7 +459,7 @@ parse_opts (
|
||||||
char *opt = SUBOPT_STR;
|
char *opt = SUBOPT_STR;
|
||||||
if (opt[0] == '@') {
|
if (opt[0] == '@') {
|
||||||
bookmarkfs_opts_add(&info->backend_conf.opts, opt + 1);
|
bookmarkfs_opts_add(&info->backend_conf.opts, opt + 1);
|
||||||
} else {
|
} else if (opt[0] != '\0') {
|
||||||
xassert(0 == fuse_opt_add_opt(&fargs->argv[1], opt));
|
xassert(0 == fuse_opt_add_opt(&fargs->argv[1], opt));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue