aboutsummaryrefslogtreecommitdiffstats
path: root/util/fusermount.c
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2005-08-05 10:35:26 +0000
committerMiklos Szeredi <miklos@szeredi.hu>2005-08-05 10:35:26 +0000
commitcc1b97c5eb5e5420b72b60a3fe321b56d2790b91 (patch)
treefd15024ea8b6124c7627cbf1ee69b0d0fed1f8b6 /util/fusermount.c
parent2f8a9e633c471bb02af39feef69f88567b050c26 (diff)
downloadlibfuse-cc1b97c5eb5e5420b72b60a3fe321b56d2790b91.tar.gz
fix
Diffstat (limited to 'util/fusermount.c')
-rw-r--r--util/fusermount.c5
1 files changed, 5 insertions, 0 deletions
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);