diff options
author | Nikolaus Rath <Nikolaus@rath.org> | 2016-10-24 20:31:29 -0700 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2016-10-24 20:31:29 -0700 |
commit | b3ab365fda1a65f2c3535cda15de885bfa9de814 (patch) | |
tree | 8bd79452c1af07034d54aaf4f4ec04d873e85dc5 /include/fuse_lowlevel.h | |
parent | 1d9f26f3736cc4703c2e988d87f5dd119bcd736d (diff) | |
download | libfuse-b3ab365fda1a65f2c3535cda15de885bfa9de814.tar.gz |
fuse_session_new(): don't accept empty argv, check argv[0]
This should help avoid people to accidentally put options
into argv[0].
Fixes #100.
Diffstat (limited to 'include/fuse_lowlevel.h')
-rw-r--r-- | include/fuse_lowlevel.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/fuse_lowlevel.h b/include/fuse_lowlevel.h index 8ec95b5..e6f95a9 100644 --- a/include/fuse_lowlevel.h +++ b/include/fuse_lowlevel.h @@ -1655,6 +1655,12 @@ int fuse_parse_cmdline(struct fuse_args *args, * If not all options are known, an error message is written to stderr * and the function returns NULL. * + * Option parsing skips argv[0], which is assumed to contain the + * program name. To prevent accidentially passing an option in + * argv[0], this element must always be present (even if no options + * are specified). It may be set to the empty string ('\0') if no + * reasonable value can be provided. + * * @param args argument vector * @param op the (low-level) filesystem operations * @param op_size sizeof(struct fuse_lowlevel_ops) |