dbus-socket: fix check of Listen* arguments
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 23 Jun 2021 16:10:57 +0000 (18:10 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 20 Jul 2021 16:15:10 +0000 (18:15 +0200)
commitae2ebb8c813a6a6f1d349695c44675d28f67556e
tree3a625eb660a259f23c7f28c1a8774db9878ce6b8
parent9cfda9da3b8ae29734851070e4b997ff4342cc5a
dbus-socket: fix check of Listen* arguments

We checked the wrong field, which was always NULL here, so we would always
reject the assignment. We would also print the wrong string in the error
message:

$ sudo systemd-run --socket-property ListenFIFO=/tmp/fifo3 cat
Failed to start transient socket unit: Invalid socket path: FIFO

(cherry picked from commit aeecab3804aae973577f36880af4b7799e4eb7d5)
(cherry picked from commit 78fb13b38572f6649f1e9822ef6acb8ca4952c12)
(cherry picked from commit 7bdc7ff0bb2d1dde1a81b2cbc76e424d1c50b7aa)
src/core/dbus-socket.c