From 23f68586955a16ed957fc1d5a284d2fc63e02bf5 Mon Sep 17 00:00:00 2001 From: Mike Salvatore Date: Sun, 14 Apr 2019 06:52:47 -0400 Subject: Print a useful error if no mountpoint could be parsed (#170) Fixes #75 --- sshfs.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sshfs.c b/sshfs.c index f282a91..8cefc5d 100644 --- a/sshfs.c +++ b/sshfs.c @@ -4051,6 +4051,12 @@ int main(int argc, char *argv[]) if (res == -1) exit(1); + if (!mountpoint) { + fprintf(stderr, "ERROR: No mount point could be parsed " + "from the command-line options\n"); + exit(1); + } + if (sshfs.slave) { /* Force sshfs to the foreground when using stdin+stdout */ foreground = 1; -- cgit v1.2.3