From cc1b97c5eb5e5420b72b60a3fe321b56d2790b91 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Fri, 5 Aug 2005 10:35:26 +0000 Subject: fix --- util/fusermount.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'util/fusermount.c') diff --git a/util/fusermount.c b/util/fusermount.c index 21504d4..03760dd 100644 --- a/util/fusermount.c +++ b/util/fusermount.c @@ -905,6 +905,11 @@ static char *resolve_path(const char *orig) char *lastcomp; const char *toresolv; + if (!orig[0]) { + fprintf(stderr, "%s: invalid mountpoint '%s'\n", progname, orig); + return NULL; + } + copy = strdup(orig); if (copy == NULL) { fprintf(stderr, "%s: failed to allocate memory\n", progname); -- cgit v1.2.3