From 555d6b504308eac6b976321ce938ee4bec62c354 Mon Sep 17 00:00:00 2001 From: Miklos Szeredi Date: Tue, 28 Sep 2010 10:13:24 +0200 Subject: 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 --- lib/mount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/mount.c') 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); -- cgit v1.2.3