Skip to content

Commit b2a0ac5

Browse files
author
David Herrmann
committed
bus-proxy: allow empty arguments to UpdateActivationEnvironment()
There is no reason to prevent empty argument lists on UpdateActivationEnvironment(). Make sure we don't fail, but still skip the call to pid1.
1 parent 10fa421 commit b2a0ac5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bus-proxyd/driver.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -707,8 +707,8 @@ int bus_proxy_process_driver(Proxy *p, sd_bus *a, sd_bus *b, sd_bus_message *m,
707707
if (r < 0)
708708
return synthetic_reply_method_errno(m, r, NULL);
709709

710-
if (!args)
711-
return synthetic_reply_method_errno(m, -EINVAL, NULL);
710+
if (strv_isempty(args)) /* nothing to do? */
711+
return synthetic_reply_method_return(m, NULL);
712712

713713
r = sd_bus_message_new_method_call(
714714
a,

0 commit comments

Comments
 (0)