diff options
author | Miklos Szeredi <miklos@szeredi.hu> | 2004-12-09 17:30:59 +0000 |
---|---|---|
committer | Miklos Szeredi <miklos@szeredi.hu> | 2004-12-09 17:30:59 +0000 |
commit | 80a0c3cdd03118f349d77bc67730e6be0e53a41e (patch) | |
tree | 689939af5499f3d6aa883e5effd764c3f6432740 | |
parent | c45d1a66b86c3e274113fdf30ab39ad2c2a69179 (diff) |
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-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); |