From 80a0c3cdd03118f349d77bc67730e6be0e53a41e Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Thu, 9 Dec 2004 17:30:59 +0000 Subject: [PATCH] bugfix --- ChangeLog | 4 ++++ util/fusermount.c | 1 + 2 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index 94fa64d..23dbbc7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2004-12-09 Miklos Szeredi + + * Fix bug causing garbage in mount options (spotted by David Shaw) + 2004-12-07 Miklos Szeredi * 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); -- 2.30.2