podman/pkg/systemd
Mario Loriedo d358e91817 Fix running machines with volumes containing spaces
Machines configured to mount local paths containing
spaces failed to start on Hyper-V and silently failed
to mount the folder on macOS/Linux.

On Windows/hyperv, where local paths are mounted
running a 9p client inside the VM, the local host
path needs to be surrounding with quotation marks
before using in a `podman machine ssh ...` command.

A similar behavior happened on Linux/QEMU where the
path was used in a SSH command to mount the folder
using virtiofs. Quoting the path when buidling the
command arguments fixed the problem.

On macOS/libkit,applehv the path was written as is
in a systemd unit name to instruct how to mount it.
Escaping space chars so that they are are parsed
successfully fixed this:
```diff
-- enable path with spaces.mount
++ enable path\x20with\x20spaces.mount
```

Fixes https://github.com/containers/podman/issues/25500

Signed-off-by: Mario Loriedo <mario.loriedo@gmail.com>
2025-05-07 17:22:40 +00:00
..
define
generate Fix QF1003: could use tagged switch" staticcheck warning 2025-03-31 12:27:55 -07:00
notifyproxy Fix Lint on Windows and enable the job 2024-02-20 08:06:18 -05:00
parser Fix running machines with volumes containing spaces 2025-05-07 17:22:40 +00:00
quadlet Merge pull request #25892 from Regis-Caelum/quadlet-pod-hostname 2025-04-22 12:52:04 +00:00
activation.go
activation_test.go update golangci-lint to 1.60.1 2024-08-19 11:41:28 +02:00
dbus.go Bump Go module to v5 2024-02-08 09:35:39 -05:00