aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--util/fusermount.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 94fa64d..23dbbc7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2004-12-09 Miklos Szeredi <miklos@szeredi.hu>
+
+ * Fix bug causing garbage in mount options (spotted by David Shaw)
+
2004-12-07 Miklos Szeredi <miklos@szeredi.hu>
* Add 'writepage' flag to 'fuse_file_info'.
diff --git a/util/fusermount.c b/util/fusermount.c
index 86b7c6c..77e808e 100644
--- a/util/fusermount.c
+++ b/util/fusermount.c
@@ -478,6 +478,7 @@ static int do_mount(const char *mnt, const char *type, mode_t rootmode,
if (*s)
s++;
}
+ *d = '\0';
res = get_mnt_opts(flags, optbuf, &mnt_opts);
if (res == -1) {
free(mnt_opts);