spiegel_podman/pkg/systemd
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
..
define generate systemd: handle --restart 2021-09-07 13:58:11 +02:00
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 Quadlet - print warning when fail to parse 2025-07-07 14:49:32 -04:00
quadlet quadlet: fix runtime error for invalid Mount value 2025-09-04 21:46:01 +02:00
activation.go pkg/systemd: don't require LISTEN_FDNAMES for socket activation 2021-06-24 09:01:39 -06:00
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