diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2004-12-09 17:31:59 +0000 |
---|---|---|
committer | Miklos Szeredi <miklos@szeredi.hu> | 2004-12-09 17:31:59 +0000 |
commit | 806613ab8539c4a6328608ffa2611df31f32feca (patch) | |
tree | 1a404471e62fb7e24e6a81d93ce4e21093ebd84e | |
parent | da60b29bd900c1d16e480fa1d20f557275b85cff (diff) | |
download | fuse-806613ab8539c4a6328608ffa2611df31f32feca.tar.gz |
bugfix
-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-03 Miklos Szeredi <miklos@szeredi.hu> * Released 2.1 diff --git a/util/fusermount.c b/util/fusermount.c index 475e655..cc4ef86 100644 --- a/util/fusermount.c +++ b/util/fusermount.c @@ -447,6 +447,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); |