spiegel_podman/pkg/systemd
Mikhail Dmitrichenko 9b4484739f systemd: fix negative number conversion
convertNumber() strips the sign before parsing the numeric value and then
applies it back via a multiplier.  The negative case uses -11 instead of
-1, causing negative values to be converted incorrectly.

This is visible for any caller using the signed result directly, and can
also produce surprising results for unsigned callers if the multiplication
overflows.

Use -1 for the negative multiplier.

Signed-off-by: Mikhail Dmitrichenko <m.dmitrichenko00@bk.ru>
2026-06-25 18:33:10 +03:00
..
define generate systemd: handle --restart 2021-09-07 13:58:11 +02:00
generate RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
notifyproxy RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00
parser systemd: fix negative number conversion 2026-06-25 18:33:10 +03:00
quadlet Handle uninstantiated template quadlets 2026-06-23 14:34:20 +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 RUN-4539: Change podman module paths 2026-04-22 14:02:25 -05:00