diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | util/fusermount.c | 1 |
2 files changed, 5 insertions, 0 deletions
@@ -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); |