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>
Mon, 12 Jul 2021 11:30:54 +0000 (13:30 +0200)
commit78fb13b38572f6649f1e9822ef6acb8ca4952c12
tree6b521032a098ba192c4859b302ce9ea19d6cb916
parent658d73b68223faee7b165389a81149bfe6770bcf
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)
src/core/dbus-socket.c