vagrant/plugins/hosts
Russell Jackson a3c94ab910 Fix Linux NFS exports pruning due to bad `sed` expression
The mount id is a file path which will contain forward slashes. A
previous attempt (although notably missing in the Linux host plugin) at
fixing this used `String.gsub` to escape the forward slashes; however,
the solution that eventually made its way into the 1.5 release uses
`Regexp.escape` which doesn't escape forward slashes.

The Ruby `Regexp.escape` method does not escape forward slashes because
they are not RE meta-characters; their special meaning is specific to
sed expressions as delimiters. To avoid the issue entirely, we can use
an alternative delimiter by prefixing the address expression with a
backslash with the desired delimiter character following.

Use control character (ASCII code point `0x01`) as expression delimiter
so it is very unlikely an identifier will have a conflicting character
within it.
2014-03-12 12:25:53 -07:00
..
arch many more hosts converted 2014-01-07 21:11:59 -08:00
bsd hosts/bsd: make directories unique when exporting 2014-02-26 08:04:21 -08:00
freebsd hosts/bsd: don't execute shell for sudo commands [GH-2808] 2014-01-12 22:34:45 -08:00
gentoo hosts/gentoo: more robust check for systemctl path on Gentoo 2014-01-18 11:03:46 -08:00
linux Fix Linux NFS exports pruning due to bad `sed` expression 2014-03-12 12:25:53 -07:00
null hosts/null: needs to accept env as param 2014-01-07 21:14:33 -08:00
opensuse hosts/opensuse: start NFS server properly [GH-2923] 2014-02-03 12:18:09 +01:00
redhat hosts/redhat: recognize Korora [GH-2869] 2014-01-21 09:50:20 -08:00
slackware hosts/*: proper detect API 2014-01-07 21:18:36 -08:00
windows hosts/*: proper detect API 2014-01-07 21:18:36 -08:00