diff options
author | Miklos Szeredi <mszeredi@suse.cz> | 2010-09-28 10:13:24 +0200 |
---|---|---|
committer | Miklos Szeredi <mszeredi@suse.cz> | 2010-09-28 19:22:24 +0200 |
commit | 555d6b504308eac6b976321ce938ee4bec62c354 (patch) | |
tree | 67f0e6b591d57fde914fd74cd0764acd385f3cef /lib/mount.c | |
parent | 64222fbcbd3ed227e4f9c68e1acccd7e68218982 (diff) |
Fix option escaping for fusermount.
If the "fsname=" option contained a comma then the option parser in
fusermount was confused (Novell bugzilla #641480). Fix by escaping
commas when passing them over to fusermount.
Reported by Jan Engelhardt
Diffstat (limited to 'lib/mount.c')
-rw-r--r-- | lib/mount.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mount.c b/lib/mount.c index b525da5..224ae9d 100644 --- a/lib/mount.c +++ b/lib/mount.c @@ -216,7 +216,7 @@ static int fuse_mount_opt_proc(void *data, const char *arg, int key, return fuse_opt_add_opt(&mo->kernel_opts, arg); case KEY_FUSERMOUNT_OPT: - return fuse_opt_add_opt(&mo->fusermount_opts, arg); + return fuse_opt_add_opt_escaped(&mo->fusermount_opts, arg); case KEY_SUBTYPE_OPT: return fuse_opt_add_opt(&mo->subtype_opt, arg); |