summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAntoine Jacoutot <ajacoutot@cvs.openbsd.org>2015-07-07 13:56:46 +0000
committerAntoine Jacoutot <ajacoutot@cvs.openbsd.org>2015-07-07 13:56:46 +0000
commitf29caa646110255738f1b37f1537e79a2c2b0572 (patch)
treee3f60bfb987e72c8d01e33736bd82bfcd6bc4d38 /lib
parentae9e4af7139f1a7d303a9d05c74a8e40a4a731e7 (diff)
Skip mountpoint checking in case we only want the version or help
(-V, -h). ok syl@ mikeb@
Diffstat (limited to 'lib')
-rw-r--r--lib/libfuse/fuse.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libfuse/fuse.c b/lib/libfuse/fuse.c
index 6bfcff72b5a..20a1cdd029e 100644
--- a/lib/libfuse/fuse.c
+++ b/lib/libfuse/fuse.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fuse.c,v 1.25 2015/02/10 07:49:22 ajacoutot Exp $ */
+/* $OpenBSD: fuse.c,v 1.26 2015/07/07 13:56:45 ajacoutot Exp $ */
/*
* Copyright (c) 2013 Sylvestre Gallon <ccna.syl@gmail.com>
*
@@ -359,10 +359,10 @@ ifuse_process_opt(void *data, const char *arg, int key,
case KEY_HELP:
case KEY_HELP_WITHOUT_HEADER:
dump_help();
- return (0);
+ return (-1);
case KEY_VERSION:
dump_version();
- return (1);
+ return (-1);
case KEY_MAXREAD:
res = strtonum(arg, 0, FUSEBUFMAXSIZE, &err);
if (err) {