udisks: escape backslash for label string
authorJiro SEKIBA <jir@unicus.jp>
Fri, 15 Oct 2010 04:48:07 +0000 (13:48 +0900)
committerMartin Pitt <martin.pitt@ubuntu.com>
Sat, 6 Nov 2010 17:01:55 +0000 (13:01 -0400)
commit3d420825ce14c3b867571c22413fd9bc48738a6e
tree751fd3b0a3ad6395602e8b95188d6c59a676fab9
parent8781f898aec9b098807cb6ce5c7d4115b3c2fdba
udisks: escape backslash for label string

validate_and_escape_label will only escapes '"'.
However, string '\"' will be escaped to '\\"' which leads unmatched
double quote for shell string in result.

This adds escaping '\' in validate_and_escape_label to avoid the problem.

Signed-off-by: Jiro SEKIBA <jir@unicus.jp>
Signed-off-by: Martin Pitt <martin.pitt@ubuntu.com>
src/helpers/job-shared.h