aboutsummaryrefslogtreecommitdiff
path: root/sshfs.c
diff options
context:
space:
mode:
authorNikolaus Rath <Nikolaus@rath.org>2017-07-08 12:26:45 +0200
committerNikolaus Rath <Nikolaus@rath.org>2017-07-08 12:26:45 +0200
commit82e899fb21c116fa8303cabbc10d68bfa06fc89f (patch)
tree52c3883ca6144aca3c515b92fb86eddce82b5775 /sshfs.c
parent34146444ce20c477cba7e9fe113e4387da32ae94 (diff)
downloadsshfs-82e899fb21c116fa8303cabbc10d68bfa06fc89f.tar
sshfs-82e899fb21c116fa8303cabbc10d68bfa06fc89f.tar.gz
sshfs-82e899fb21c116fa8303cabbc10d68bfa06fc89f.tar.bz2
sshfs-82e899fb21c116fa8303cabbc10d68bfa06fc89f.zip
Switch to libfuse 3.1.0
libfuse 3.0.0 is rather new and not widely used yet, so requiring libfuse 3.1.0 right away shouldn't be a problem.
Diffstat (limited to 'sshfs.c')
-rw-r--r--sshfs.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sshfs.c b/sshfs.c
index cbc0c79..a20f727 100644
--- a/sshfs.c
+++ b/sshfs.c
@@ -3884,11 +3884,7 @@ int main(int argc, char *argv[])
if (sshfs.show_help) {
usage(args.argv[0]);
- /* Re-add --help */
- if (fuse_opt_add_arg(&args, "--help") == -1)
- exit(1);
- /* Print FUSE help text */
- assert(fuse_new(&args, NULL, 0, NULL) == NULL);
+ fuse_lib_help(&args);
exit(0);
} else if (!sshfs.host) {
fprintf(stderr, "missing host\n");