aboutsummaryrefslogtreecommitdiff
path: root/sshfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'sshfs.c')
-rw-r--r--sshfs.c6
1 files changed, 6 insertions, 0 deletions
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;