diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2005-12-09 20:09:42 +0000 |
---|---|---|
committer | Miklos Szeredi <miklos@szeredi.hu> | 2005-12-09 20:09:42 +0000 |
commit | 3b534a478324b360d2a9804a28c2a49e06176f30 (patch) | |
tree | 386d13bd72ce3f378661778af27424e9dc452f9a /lib/fuse_lowlevel.c | |
parent | 659743bc8870afd42bcacecbd6fa571befd5579f (diff) | |
download | libfuse-3b534a478324b360d2a9804a28c2a49e06176f30.tar.gz |
new version
Diffstat (limited to 'lib/fuse_lowlevel.c')
-rw-r--r-- | lib/fuse_lowlevel.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/fuse_lowlevel.c b/lib/fuse_lowlevel.c index 370e320..b35b16a 100644 --- a/lib/fuse_lowlevel.c +++ b/lib/fuse_lowlevel.c @@ -925,6 +925,14 @@ static struct fuse_opt fuse_ll_opts[] = { FUSE_OPT_END }; +static int fuse_ll_opt_proc(void *data, const char *arg, int key) +{ + (void) data; + (void) key; + fprintf(stderr, "fuse: unknown option `%s'\n", arg); + return -1; +} + int fuse_lowlevel_is_lib_option(const char *opt) { return fuse_opt_match(fuse_ll_opts, opt); @@ -964,8 +972,8 @@ struct fuse_session *fuse_lowlevel_new(const char *opts, if (opts) { const char *argv[] = { "", "-o", opts, NULL }; - if (fuse_opt_parse(3, (char **) argv, f, fuse_ll_opts, NULL, - NULL, NULL) == -1) + if (fuse_opt_parse(3, (char **) argv, f, fuse_ll_opts, + fuse_ll_opt_proc, NULL, NULL) == -1) goto out_free; } |