Re: [systemd-devel] [PATCH 7/9] nspawn: escape paths in overlay mount options

2015-06-19 Thread Lennart Poettering
On Fri, 19.06.15 11:17, Richard Maw (richard@codethink.co.uk) wrote: Also, it's really inefficient, since strreplace() goes through the string each time from the beginning. I was looking to do something simple rather than fast, as this isn't a particularly latency sensitive bit of

Re: [systemd-devel] [PATCH 7/9] nspawn: escape paths in overlay mount options

2015-06-19 Thread Richard Maw
On Thu, Jun 18, 2015 at 08:39:10PM +0200, Lennart Poettering wrote: On Thu, 28.05.15 13:02, Richard Maw (richard@codethink.co.uk) wrote: Overlayfs uses , as an option separator and : as a list separator. These characters are both valid in file paths, so overlayfs allows file paths

Re: [systemd-devel] [PATCH 7/9] nspawn: escape paths in overlay mount options

2015-06-18 Thread Lennart Poettering
On Thu, 28.05.15 13:02, Richard Maw (richard@codethink.co.uk) wrote: Overlayfs uses , as an option separator and : as a list separator. These characters are both valid in file paths, so overlayfs allows file paths which contain these characters to backslash escape these values. ---

[systemd-devel] [PATCH 7/9] nspawn: escape paths in overlay mount options

2015-05-28 Thread Richard Maw
Overlayfs uses , as an option separator and : as a list separator. These characters are both valid in file paths, so overlayfs allows file paths which contain these characters to backslash escape these values. --- src/nspawn/nspawn.c | 63 +++-- 1