spiegel_podman/pkg/systemd/quadlet
Jakob Meier 163bdf2df8 quadlet: fix runtime error for invalid Mount value
If the `Mount` option inside a quadlet is missing the source=... part,
the code today panics with the following message.

```
panic: runtime error: index out of range [0] with length 0

goroutine 1 [running]:
github.com/containers/podman/v5/pkg/systemd/quadlet.handleStorageSource(0xc000140de0?, 0x1d?, {0x0?, 0x1?}, 0x5634e39e233e?, 0x10?)
...
```

This commit checks for the missing source and returns an error to avoid the panic.

Signed-off-by: Jakob Meier <mail@jakobmeier.ch>
2025-09-04 21:46:01 +02:00
..
podmancmdline.go quadlet: handle generate environment params that inherit from host 2025-06-10 20:50:13 +02:00
quadlet.go quadlet: fix runtime error for invalid Mount value 2025-09-04 21:46:01 +02:00
quadlet_common.go Initial implementation of podman quadlet commands 2025-07-18 13:57:11 -07:00
unitdirs.go Initial implementation of podman quadlet commands 2025-07-18 13:57:11 -07:00
unitdirs_test.go Initial implementation of podman quadlet commands 2025-07-18 13:57:11 -07:00