Hello Jiro, Jiro SEKIBA [2010-10-15 13:48 +0900]: > > 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.
Thanks for this. I committed a check to the test suite which reproduces this problem, and I confirm that this fixes it for most file systems. It still falls over badly for VFAT (which doesn't support " in labels at all, and thus just interactively hangs around asking what to do), I'll care for that next. I pushed your patch. Martin -- Martin Pitt | http://www.piware.de Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)
signature.asc
Description: Digital signature
_______________________________________________ devkit-devel mailing list devkit-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/devkit-devel